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 kind of variables can a class consist?
Can private class be extended java?
Is zero a natural number?
What is primitive data type in java?
Explain the difference between treeset and treemap in java?
What does the “static” keyword mean? Can you override private or static method in java?
What is a newline character in java?
What is scope of a variable?
How do you clear an arraylist in java?
Why singleton class is used in java?
Is jdk required on each machine to run a java program?
What the difference is between execute, execute Query, execute Update?
Can the garbage collection be forced by any means?
What is final keyword?
What is the difference between iterator and enumeration ?