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 happens if main method is not static?
Can an object be null?
What is a class variable?
What is a qualifier in a sentence?
Is object a data type in java?
What is difference between static and final?
Which is better list or arraylist in java?
What is the base class of all classes?
How we create object in copy constructor?
How to find the given number is a prime number or not by getting input from the user
What are different data types?
What does string mean in java?
How dead lock situation occurs in java and how you can identify it?
Java is Pass by Value or Pass by Reference?
How do you trim a space in java?