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
Can variables be used in java without initialization?
What is r in java?
Why do I need to declare the type of a variable in java?
What is bigger kb or mb?
What is the use of isempty in java?
Explain yield() method in thread class ?
What is size of int in java?
What is the transient keyword?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
What does super keyword do?
Why is sizeof not a function?
What is the use of volatile in java?
How to sort a collection of custom Objects in Java?
What is getclass () getname () in java?
What one should take care of, while serializing the object?