What is the difference between final, finally and finalize

Showing Answers 1 - 1 of 1 Answers

Kulwant

  • Sep 12th, 2005
 

Final is used to stop inheritance in case of classes, to stop overloading/ overriding any method and decalse a constant.

Finally: is used a after a try or try/catch block  in order to execute for sure whether any exception occurs or not

Finalize: is used to release some resources that are no longer used and  is called just before garbage collection.

  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