Basic and Advance Java Question: Download Java PDF

What is the purpose of finalization in Java Programming?

Tweet Share WhatsApp

Answer:

The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected.

Download Java PDF Read All 81 Java Questions
Previous QuestionNext Question
Can an anonymous class be declared as implementing an interface and extending a class in Java Programming? Which class is the superclass for every class in Java Programming?