Explain difference between final, finally and finalize?

Answer Posted / mukund viswanath vyavhare

Final -it is keyword .It is use for
variables and method.
Finally-it is use to define a block
that is always executed in try
catch and finally stetment.

Is This Answer Correct ?    11 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What if I write static public void instead of public static void in java?

574


How do you declare a variable?

619


Difference between arraylist and vector.

582


Difference between this() and super() ?

569


How we can make copy of a java object?

646






What is the difference between the font and fontmetrics classes in java programming?

494


How to perform binary search in java?

567


Does printwriter create a file?

536


what is an objects lock and which objects have locks? : Java thread

524


What does split function do in java?

530


What are parameters in a method?

581


What is the benefit of singleton pattern?

520


What is preparedstatement in java?

553


What is the += operator called?

575


What is n in java?

535