In Java, finalize is called on an object (that overrides it) when it’s about to be garbage collectioned, so when it’s unreachable. But what if the finalizer makes the object reachable again, what happens then?
In Java, finalize is called on an object (that overrides it) when it’s about
Share
The object will not be collected until it gets unreachable again.
According to the JavaDoc, finalize() will not be called again.