Object reference : 8 bytes.
Array : 24 bytes + memory for each array entry.
Object : 16bytes + memory for each instance variable + 8 if inner class (for pointer to enclosing class).
Padding : round up to multiple of 8 bytes.
Object reference : 8 bytes.
Array : 24 bytes + memory for each array entry.
Object : 16bytes + memory for each instance variable + 8 if inner class (for pointer to enclosing class).
Padding : round up to multiple of 8 bytes.