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
What is the integer of 16?
Why set do not allow duplicates in java?
Is map sorted in java?
Can you have two constructors in java?
How will you compute size of a structure?
Why a dead thread occurs?
Why is inheritance used in java?
Can I override protected method in java?
Can a class have 2 constructors?
What is method in java with example?
What is variable and constant explain with example?
Can static methods access instance variables in java?
What is protected in java?
If a method is declared as protected, where may the method be accessed?
What are the benefits of java?