1.

What is the use of the finalize () method in Java?

Answer»

The FINALIZE () method in java is a special method similar to the main method in java. Before the garbage collector reclaims the object, finalize () method is called as its last chance for any object to perform a clean up activity. This MEANS RELEASING any fixed order resources held, terminating a connection if open, and so on.

For INSTANCE:

protected void finalize THROWS Throwable{}


Discussion

No Comment Found