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
Difference between Linked list and Queue?
explain different ways of using thread? : Java thread
What are "class access modifiers" in Java?
What are encapsulation, inheritance and polymorphism?
What is meant by inheritance and what are its advantages?
What is the difference between scrollbar and scrollpane?
what is heap memory?
What is included in core java?
Can bool be null?
How concurrent hashmap works?
What means public static?
What is methodological framework?
Can we compare two strings in java?
How do you identify independent and dependent variables?
When do you get classcastexception?