Java Heap --- Stack
843811Jun 1 2001 — edited Aug 7 2001Java Heap and Stack memory allocation.
Since in Java, you always use new()
method to allocate memorys, which is allocated
on heap even the variable is declared within functions.
So the stack only store the object reference,
while the heap store all the object, is this correct?
Thx