0

In an interview, I was asked a Java-related question :" How much space does an empty class take in Java?" There was no good answer to that."

  • You were correct. There is no good answer to that. It isn't defined and it is dependent on several implementation details as well as the word size of the processor that the JVM was compiled to use. Let us hope that the interviewer was hoping for such an answer. – user207421 Oct 16 '21 at 05:52

0 Answers0