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

Why generics are used in java?

775


What is difference between public static and void?

699


Does a function need a return?

746


What is difference between core java and java ee?

680


Explain garbage collection in java?

749


Name few "optional" classes introduced with java 8 ?

873


What is the diffrence between inner class and nested class?

820


What is synchronization and why is it important in java programming?

715


What is prefix of a string?

803


Can a class be a super class and a sub-class at the same time? Give example.

1158


What is blank final variable?

797


Can singleton class be serialized?

733


What is boolean keyword in java?

871


What is the difference between a vector & an array list?

908


What is the difference between static and non-static variables in java programming?

715