Why does Java use a heap data structure to store an object?

Or it does NOT use a bunch of "Data Structure". Is the name assigned to memory for distribution (memory pool) called heap?

If so, is there any relation between the heap data structure and the heap, as in a memory pool?

+5
source share
2 answers

There is no connection between heap memory and heap data structures . They just have the same name.

+11
source

Are you talking about the difference between heap memory and stack memory?

I would explain it, but this answer is pretty sweet

What and where is the stack and heap?

0
source

All Articles