Admin
  • 0

How do you determine the size of an object in Java?

  • 0
How do you determine the size of an object in Java?
Share

1 Answer

  1. One way to get an estimate of an object’s size in Java is to use getObjectSize(Object) method of the Instrumentation interface introduced in Java 5. As we could see in Javadoc documentation, the method provides “implementation-specific approximation” of the specified object’s size.

    • 0
Leave an answer

Leave an answer

Browse

Related Questions