Why we need Finally with try?
pls expain with ur example..

Answer Posted / uppaluri

Finally Block always executes when the try block exists. Finally is used for more than exception handling : It allows the Programmer to avoid having cleanup code accidentally bypassed by a return, continue, or break. Putting cleanup code in a finally block is always a good practice. Hopefully you find your Solution.If you have any questions regarding Java mail me

Is This Answer Correct ?    16 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the integer of 16?

523


Why set do not allow duplicates in java?

553


Is map sorted in java?

552


Can you have two constructors in java?

479


How will you compute size of a structure?

546






Why a dead thread occurs?

544


Why is inheritance used in java?

575


Can I override protected method in java?

571


Can a class have 2 constructors?

474


What is method in java with example?

465


What is variable and constant explain with example?

504


Can static methods access instance variables in java?

546


What is protected in java?

508


If a method is declared as protected, where may the method be accessed?

505


What are the benefits of java?

552