+ 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 ?
1 Odpowiedź
+ 1
Here's a link:
https://ordepdev.me/posts/size-of-an-object-in-java
Hope this answers your question.