Stack vs Heap Flashcards
1
Q
Cleaned up as method completes
A
Stack
2
Q
Instance variables
A
Heap
3
Q
JVM cleans up objects not in use
A
Heap
4
Q
Method calls
A
Stack
5
Q
Objects
A
Heap
6
Q
Variables
A
Stack
7
Q
Reference variables
A
Stack