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 garbage collector?

823


What does n mean?

714


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

10141


Explain the selection sort algorithm?

858


What is the difference between synchronized and synchronized block?

804


Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

2336


What is append function?

772


Explain a few methods of overloading best practices in java?

752


Explain naming conventions for packages?

780


What is lazy initialization in java?

755


How does multithreading take place on a computer with a single cpu?

784


Define packages in java?

792


What does super keyword do?

783


What is the difference between the prefix and postfix forms of the ++ operator?

788


What are the different types of inheritance in java?

767