Stack vs Heap Flashcards

1
Q

Cleaned up as method completes

A

Stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Instance variables

A

Heap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

JVM cleans up objects not in use

A

Heap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Method calls

A

Stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Objects

A

Heap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Variables

A

Stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Reference variables

A

Stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly