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 final keyword in java? Give an example.
What is the difference between serializable and externalizable interfaces?
What exactly is methodology?
what is the difference between a threads start() and run() methods? : Java thread
What is data and its types?
Can Exception handling we can handle multiple catch blocks?
Explain about transient variables in java?
What is the common usage of serialization? What exceptions occur during serialization?
How to add menushortcut to menu item?
Where is the singleton class used?
What does escaping a character mean?
What is the difference between overriding & overloading?
How many types of the indexof method are there for strings?
What are the differences between string and stringbuffer?
When super keyword is used?