+ 1

What is object overhead memory in java?

For an array of n object each of size 24 bytes , do we require 40 * n bytes in total in which 16 byte memory is object overhead memory. I think the object overheard memory should be allocated only once otherwisd it will a waste of so much memory. Am i correct ?

23rd Apr 2020, 12:38 AM
Rohit kumar
Rohit kumar - avatar
1 Answer
+ 1
Here's a link: https://ordepdev.me/posts/size-of-an-object-in-java Hope this answers your question.
28th Apr 2020, 8:11 PM
Sahil Monish Lal (Offline)
Sahil Monish Lal (Offline) - avatar