Why we need Finally with try?
pls expain with ur example..
Answer Posted / kedar lasane from tuljapur
Because Some Instructions that must be executed in our java
program though there is exception in try block caught by
catch.Once the Exception occurs it catched by catch
statement and control never goes to try block again.So to
Execute some statements after subsequent with try block then
finally {} block is used.Hopefully You find your solution.If
any questions regaurding to java just mail me.
--------------
thnx
my blog: http://www.tuljabhavani.in
Is This Answer Correct ? | 34 Yes | 4 No |
Post New Answer View All Answers
What’s the difference between constructors and other methods?
Explain the differences between abstraction and encapsulation?
What is method overloading with type promotion?
Difference between association, composition and aggregation?
Describe 2 different ways to concatenate two strings.
Can we overload run() method in java?
What are java annotations?
What is an argument in java?
What are alternatives to java serialization?
How does the garbage collector works in java?
What is a local class in java?
What is lazy programming?
What is the use of protected in java?
Explain about instanceof operator in java?
What is difference between word and integer?