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
Is linked list a linear or non-linear data structure?
What is the difference between the boolean & operator and the && operator in java programming?
How do you add spaces in java?
Is there a sort function in java?
What is the difference between member variables initialization and assignment in a constructor?
Which is better stringbuffer or stringbuilder?
What does a za z0 9 mean?
What are the 8 data types in java?
What are classloaders?
How can we make a class virtual?
Tell me a few examples of final classes defined in Java API?
What is boolean strategy?
Can an interface have a class?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
What is the purpose of static methods and static variables?