What are different types of Exceptions?.

Answer Posted / m.k.sreenivas

Checked exceptions:
A checked exception is some subclass of Exception (or
Exception itself), excluding class RuntimeException and its
subclasses. Each method must either handle all checked
exceptions by supplying a catch clause or list each
unhandled checked exception as a thrown exception.

Unchecked exceptions:
All Exceptions that extend the RuntimeException class are
unchecked exceptions. Class Error and its subclasses also
are unchecked.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is stringbuffer faster than string?

475


What is int lol?

583


Why string is immutable or final in java

596


What is a databasemetadata?

535


What is tcp ip in java?

574






When should you make a function static?

532


Which package has light weight components in java programming?

661


How to display names of all components in a Container?

2477


What is a char in java?

523


What is float in java?

550


What is compiler and what its output.

624


What is the multi-catch block in java?

522


What is meant by structural programming?

535


Why is boolean important?

577


What is a values collection view ?

673