types of exceptions

Answer Posted / anonymous

2 Types of Exception
1) Checked Exception : All exception classes that come
under Hierarchy of Throwable except "Runtime Exception"
and "Error" are checked exception. Eg: IOException etc.

2) Unchecked Exception : All classes that come under
hierarchy of "Runtime Exception" and "Error" are unchecked
exception For Eg. : NullPointerException,
ArrayIndexOutOfBoundsException etc.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you detect a keypress in a jcombobox?

664


What are local interfaces? Describe.

688


What are the benefits of detached objects?

577


What is the diffrence between a local-tx-datasource and a xa-datasource?

567


which book is better for jdbc ,servlets and jsp

1635






What are the purpose of introspection?

668


What event results from the clicking of a button?

686


How are the elements of a cardlayout organized?

587


Describe, in general, how java's garbage collector works?

528


What are transaction attributes?

605


What is glasgow?

572


How substring() method of string class create memory leaks?

540


What is Remote Server?

1677


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

1740


What is the infobus?

603