WHAT IS DIFFERENCE BETWEEN CHECKED EXCEPTION AND UNCHECKED EXCEPTION?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 529  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What is difference between Checked Exception and Unchecked Exception?

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!