posted 14 years ago
Hi All,
Is there any mechanism through which we can find the occupied memory area by an Object?
Is it true that if we instantiate a subclass then the occupied memory by the object will be greater than the superclass' object ?
class A{}
class B extends A{}
Let instance of A occupy 3KB.
How can be it found the occupied memory area by an instance of B?