I’ve seen people comment about Java Heap memory being contiguous and people say the contrary. Well, can someone give me a final answer and explain this question? Also, is there some kind of data structure in Java Heap as there is in Java Stack?
I’ve seen people comment about Java Heap memory being contiguous and people say the
Share
Quoting from the JVM spec: The memory for the heap does not need to be contiguous. So your code shouldn’t make assumptions about the continuity of the heap.