When is finalize() invoked during garbage collection?
问题 From : Q11 of https://www.baeldung.com/java-memory-management-interview-questions When an object becomes eligible for GC, the garbage collector has to run the finalize() on it; this method is guaranteed to run only once, thus the collector flags the object as finalized and gives it a rest until the next cycle. I have a few questions to ask: Is that statement correct? Is it during the marking phase, does the garbage collector invoke the finalize() method? Why does it give a rest until the next