FlashcardIntermediate
Heap, Stack & Garbage Collection
Java stores objects on the heap and reclaims unreachable ones automatically via garbage collection.
Question
Where do Java objects live, and how is their memory reclaimed?
Click to reveal answer
Java stores objects on the heap and reclaims unreachable ones automatically via garbage collection.
Where do Java objects live, and how is their memory reclaimed?