0 votes
in JAVA by
What is the difference between Checked Exception and Unchecked Exception?

1 Answer

0 votes
by

Below is the difference between Checked Exception and Unchecked Exception

1) 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.

2) Unchecked Exception

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

Related questions

0 votes
asked May 2, 2021 in JAVA by sharadyadav1986
+3 votes
asked May 13, 2021 in JAVA by rajeshsharma
...