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 object in java?

784


What is sortedset in java?

798


What is the list interface?

864


What are the two parts of a conditional statement?

746


Why is boolean important?

825


What is hashmap and map?

769


What is function and its uses?

816


Why runnable interface is used in java?

859


Is arraylist dynamic in java?

742


How does the java compiler work?

751


What are the java ide's? Explain

761


Is java a compiler?

775


What is an escape character in java?

797


What defines function?

758


Difference between stack and queue?

827