What is finally in exception handling?

Answer Posted / manikandan adhimoolam

1.its a keyword in java
2.whether or not exception its automatically executed.
3.its follwed by try,catch.
4.its optional block.
5.using for connection close in db connection
6.if dont want execute finally u mention the catch block
system.exit(-1)

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are streams?

640


How many arguments can a method have java?

546


What are different types of references?

536


What is double in java?

521


What initialize variables?

509






How can you traverse a linked list in java?

694


How does arrays sort work in java?

612


What is a method header?

554


What is the difference between inheritance and encapsulation?

597


What is append function?

574


What is map in java?

522


Is ++ operator thread-safe in java?

638


What is difference between static class and normal class?

537


What does super keyword do?

564


What is the difference between preparedstatement and statement in java?

562