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 your platform?s default character encoding and how to know this?
What is string in java with example?
What is the purpose of a default constructor?
Is ruby built on java?
What does i ++ mean in Java?
What is the statements?
What is thread life cycle?
What does flag mean in java?
What is protected in java?
What are heap memory and stack memory and what are memory tables.
What does || || mean in math?
What are default methods ?
Which types of exceptions are caught at compile time?
What is a substring of a string?
What’s the difference between the methods sleep() and wait()?