Garbage Collection

Preview

In the previous chapter you placed objects on the heap and saw generations (Eden, survivors, old). Garbage collection is how the JVM reclaims unreachable objects in that heap — without you calling free.

Sign in to read the full chapter.

Checking access…