Answer the question
In order to leave comments, you need to log in
Garbage collector and finalize method in Java?
First question. From one article.
System.runFinalization() creates a second "SecondaryFinalizer" thread, which also calls finalize() on objects in the same queue, while the thread that called System.runFinalization() waits until the Finalizer queue that is currently available has run out.
The collector will clean up the finalized object in two steps: in the first it will execute finalize, and in the second it will be collected.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question