What is the purpose of finalization?

Answer Posted / srikanth reddy

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

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What if static is removed from main method?

566


Why java is secure? Explain.

583


Explain purpose of sleep() method in java?

610


Difference between final and effectively final ?

626


What is thread life cycle in java?

576






What is java lang string?

542


Give us a program to check for parenthesis matching using stack.

550


How many bytes are a float?

501


What is keyword auto for?

635


What is the difference between variable declaration and variable initialization?

499


What causes memory leak in java?

471


What is flag in java?

527


What is difference between hashset and hashmap?

550


What is empty list in java?

616


Explain about anonymous inner classes ?

572