What is the purpose of finalization

The purpose of finalization is to give an unreachable object the opportunity to performany cleanupprocessing before the object is garbage collected.

Showing Answers 1 - 3 of 3 Answers

The purpose of finalization is to provide opportunity to an object which is unreachable to perform any cleanup process . This activity is done before the object is garbage collected.Finalization is used to invoke finalized() method

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions