explain the classification of exception and hoew to handle
the exceptions

Answers were Sorted based on User's Feedback



explain the classification of exception and hoew to handle the exceptions..

Answer / bindhu

there are two types of exceptions in java

1> checked exceptions

checked exceptions are also known as compile time
exceptions as they are identified during compile time of
the program. It is also known as Normal Exception.
Example: FileNotFoundException,ClassNotFoundException, etc..

2> Unchecked exceptions

Unchecked Exceptions are also known as runtime exceptions
as they are identified during the runtime of the program.
Example: ArithmeticException etc..

Is This Answer Correct ?    11 Yes 2 No

explain the classification of exception and hoew to handle the exceptions..

Answer / ravikiran

Checked and unchecked exceptions
We can handle the exception by make use of
try/catch/finally (or) by using throws clause

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More Core Java Interview Questions

Why multiple inheritance is not supported by java?

0 Answers  


My application URL : http://localhost:8080/Application/Login.jsp. When a user enter this url in IE then, how it get Login.JSP Page exactly? what are the processes will happen from when we submit the URL to get Login.jsp?

3 Answers   IBM, TCS,


what is purpose of writting public static void main(Strind arg[]) in java..?

4 Answers   ITC Infotech,


Can a abstract class be defined without any abstract methods?

0 Answers  


Can a boolean be null java?

0 Answers  






can we overload main method?

8 Answers   TCS,


Can a class have more than one object?

0 Answers  


Is Java a dying language?

0 Answers  


what is ennumaration?

2 Answers   Amdocs,


Why string is immutable with example?

0 Answers  


What is meant by event handling in SAX parser?

1 Answers   Ness Technologies,


Can singleton class be inherited in java?

0 Answers  


Categories