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 are the steps that are followed when two computers connect through tcp?
What is difference in between java class and bean?
What do the thread?class methods run() and start() do?
what is the purpose of "virtual"?
What does flag mean in java?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
What is the parse method in java?
What are some alternatives to inheritance?
What is a method declaration?
what do you understand by the term string with respect to java?
What is the default value of float and double datatype in java?
What's the purpose of static methods and static variables?
What is the basic difference between string and stringbuffer object?
Can we declare a constructor as final?
What are the benefits of java?