finalize() method?

Answer Posted / jigar gandhi

When the garbage collector is ready to release the storage
ed for your object, it will first call finalize( ),

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why synchronization is important?

583


What is the this keyword?

549


What is a treemap in java?

532


When should a function throw an exception?

595


What is the difference between a method and a function in alice?

572






How to reverse string in java?

610


Why deletion in linkedlist is fast than arraylist?

530


Can a class be a super class and a sub-class at the same time? Give example.

787


What is a boolean in java?

573


If try block is successfully executed, Then Is Finally block executed?

602


What is the difference between inner class and nested class?

544


Why is singleton not thread safe?

641


Why string is not thread safe?

529


What is class array in java?

502


Under what conditions is an object’s finalize() method invoked by the garbage collector?

573