Home > Software > Java > Core-Java
Interview Questions   Tutorials   Discussions   Programs   

Core-Java - What are the differences between final,finally,finalize methods?




302
views
asked marvit September 16, 2014 02:41 AM  

What are the differences between final,finally,finalize methods?


           

1 Answers



 
answered By Madhumathi   0  

'final' is a keyword which is used to declare a method or a variable as final .

'finally' is block , which is used after try and catch blocks .

'finalize' is a method which is called for each method when the method becomes eligible for garbage collection.

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert