Does Java provide any construct to find out the size of an object?

Q

Does Java provide any construct to find out the size of an object?

✍: Guest

A

No there is not sizeof operator in Java. So there is not direct way to determine the size of an object directly in Java.

2013-05-24, 1915👍, 0💬