Question 12
Back to Exercise
Where are objects and local reference variables stored?
- A Both on the stack
- B Objects on the heap; local reference variables in the method's stack frame Correct
- C Both on the heap
- D Objects in registers
Correct Answer: Option B
Fields of an object are stored inside the object, on the heap.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!