Friday 15 March 2013

What is the difference between final, finally and finalized?

What is the difference between final, finally and finalized? 
"final" is a modifier in java. You can use "final" key word for classes, methods and variables. final variable can be assigned only once.
"finally" ,it is a block in exception handling, whatever u write in that block that would be executed 100% irrespective of the exception.
"finalize()" This is a method called by the garbage collector before reclaims the memory of an object.

Blog Author: Vijay Kumar

Go to: Coding Problem Solutions

No comments: