Skip to main content
This is lesson 2 of 11 in this module Course 76% complete

Finalization on the Heap

Premium Content

Sign in with your account or sign up to access this lesson.

We trace in detail how the garbage collector uses the finalization queue and the f-reachable queue to keep finalizable objects artificially alive, explaining why finalized objects always survive at least one mark-and-sweep cycle and move to generation one or two.