How Can We Reference an Unreferenced Object Again in Java ?

We can provide implementation in finalize() method to reference and unreferenced object. For an unreferenced object, finalize() method is called at the time of Garbage Collection. At this time, Object can pass its reference ‘this’ to finalize() method and revive itself.



You May Interest

What is the Different Type of Tag Library Groups in JSTL ?

How Can You Upload a Large File in JSP ?

What is the Difference Between DOM and SAX Parser in Java ?

How Will You Implement Error Page in JSP ?

What are the Java Collection Classes That Implement List Interfac ...