What are different types of Exceptions?.

Answer Posted / ranganathkini

There are three main types of Exceptions:

1. Checked execptions: which have to be handled by the code.
These represent avoidable exceptional conditions which can
be handled and recovered from.

2. Runtime Exceptions: which need not be handled by the
code. These represent unexpected exceptional conditions
which can be handled but not necessarily recover from.

3. Errors: which need not be handled by the code. These
represent severe unexpected exceptional conditions which
shud not be attempted to handle.

Is This Answer Correct ?    79 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stack class in java?

534


What is the equal sign?

553


What is binary tree in java?

522


What is a layout manager and what are different types of layout managers available in java awt?

712


Why isn’t there operator overloading?

582






What is Session reduplication and how its done?

1558


What is byte code and why is it important to java’s use for internet programming?

586


How do you sing an Applet ?

2026


What is polymorphism java example?

534


Why do we create threads in java?

566


Can sleep() method causes another thread to sleep?

558


Why does java have two ways to create child threads?

461


Is null a keyword in java?

549


Why java is not 100% object-oriented?

819


What is method with example?

570