Answers

Question and Answer:

  Home  Sr.Java Web Developer

⟩ Explain me what are the differences between Checked Exception and Unchecked Exception?

Checked Exception:

☛ The classes that extend Throwable class except RuntimeException and Error are known as checked exceptions.

☛ Checked exceptions are checked at compile-time.

☛ Example: IOException, SQLException etc.

Unchecked Exception:

☛ The classes that extend RuntimeException are known as unchecked exceptions.

☛ Unchecked exceptions are not checked at compile-time.

☛ Example: ArithmeticException, NullPointerException etc.

 153 views

More Questions for you: