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 is object english?

585


Is null keyword in java?

527


Can vector have duplicates in java?

509


How many characters is 2 bytes?

532


What is dot operator?

574






What is increment in java?

526


What is anti pattern in cyber security?

528


What is role of void keyword in declaring functions?

578


What is the use of singleton class?

525


Discuss 2D arrays.

610


What are the differences between wait() and sleep()?

541


What is the difference between abstract classes and interfaces?

513


What is another word for methodology?

521


is it possible to instantiate the math class?

535


What are default methods ?

580