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


Please Help Members By Posting Answers For Below Questions

What happens if main method is not static?

742


Can an object be null?

757


What is a class variable?

822


What is a qualifier in a sentence?

769


Is object a data type in java?

864


What is difference between static and final?

794


Which is better list or arraylist in java?

673


What is the base class of all classes?

777


How we create object in copy constructor?

889


How to find the given number is a prime number or not by getting input from the user

800


What are different data types?

791


What does string mean in java?

845


How dead lock situation occurs in java and how you can identify it?

763


Java is Pass by Value or Pass by Reference?

821


How do you trim a space in java?

740