Home > DeveloperSection > Interviews > What is difference between Checked Exception and Unchecked Exception?

Posted on    April-23-2015 12:21 AM

 Java Exception Handling  Java 
 1 Answer(s)
  456  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    April-23-2015 12:21 AM

Checked Exception
The classes that extend Throwable class except RuntimeException and Error are known as checked exceptions e.g.IOException, SQLException etc. Checked exceptions are checked at compile-time.

Unchecked exception
The classes that extend RuntimeException are known as unchecked exceptions e.g. ArithmeticException, NullPointerException, ArrayIndexOutOfBoundsException etc. Unchecked exceptions are not checked at compile-time rather they are checked at runtime

Don't want to miss updates? Please click the below button!

Follow MindStick