0
Is it possible to construct empty class in java? If possible that what is the size of class?
Classes in java
2 Answers
+ 1
Yes it is possible to construct an empty class in Java and it will compile successfully.
The JVM does not want you to know how all the memory is managed internally so that you can focus more on the business logic. So I do not think that you will be able find the size of an empty class.