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
How does multithreading take place on a computer with a single cpu?
What is the purpose class.forname method?
What is == and === in javascript?
What is an object's lock and which object's have locks in java programming?
Can we sort a map in java?
What is difference between arraylist and list in java?
What does 3 dots mean in java?
What is blank final variable?
What is the difference between member variables initialization and assignment in a constructor?
Is java same as core java?
Can a class be a super class and a sub-class at the same time? Give example.
What is the static method?
What is the default access specifier for variables and methods of a class?
how can i use a nonsynchronized hashtable?
Why is logger singleton?