What are different types of Exceptions?.

Answer Posted / manikandan

Exception come is several flavours such as
RuntimeExceptions, Errors, Checked and Unchecked. The 3
major types of exception are ,

(1) RuntimeException : Error that can occur in almost any
code (Eg)NullPointerException

(2) Error : Serious error you really should not try to
catch, e.g. OutOfMemoryError.

(3) Checked Exception : Likely exceptional condition that
can only occur in specific places in the code e.g.
EOFException.

Is This Answer Correct ?    14 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is singleton math?

567


What defines function?

529


Differentiate between array list and vector in java.

626


How to find the index of the largest number in an arraylist java?

507


What is a null check?

531






What are peerless components in java programming?

573


What restrictions are placed on method overriding?

633


Explain constructors and types of constructors in java.

635


Does java linked list allow duplicates?

544


Is array a class?

510


What do you mean by checked exceptions?

529


What are the different http methods?

519


How to call one constructor from the other constructor ?

595


Which java collection does not allow null?

709


What is the format specifier?

505