ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

How is final different from finally and finalize()?

Final - constant declaration.

The finally block always executes when the try block exits, except System.exit(0) call.

finalize() is a method of Object class which will be executed by the JVM just before garbage collecting object to give a final chance for resource releasing activity.

Related Posts Plugin for WordPress, Blogger...
Flag Counter