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

Write a factorial program using recursion in java?

518


Which variable is the independent variable?

539


Explain the difference between protected and default access.

517


What is a Hash Table? What are the advantages of using a hash table?

610


Explain the difference between the public, private, final, protected, and default modifiers?

551






Is empty string in java?

544


Can two objects have same hashcode?

566


What is the difference between the prefix and postfix forms of the ++ operator?

555


What is a Null object?

892


What is a memory leak in java?

547


Why is serialization required?

543


What is the difference between a loader and a compiler?

526


Give a brief description of java socket programming?

527


What is class??

757


How to add menushortcut to menu item?

565