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?
Explain about join() method?
Can a lock be acquired on a class in java programming?
List the interfaces which extends collection interface?
How many bits is a string in java?
Why java is considered dynamic?
What does arrays sort do in java?
Can you use this() and super() both in a constructor?
What is the use of System class?
Justify your answer that you can't define a method inside another method in java, if you can then how?
Can a static method be overridden in java?
How many times finalize method will be invoked? Who invokes finalize() method in java?
What is arrays fill in java?
Difference between java and javascript
Is null or empty java?