What are the two types of Exceptions in Java ?    Which are the differences between them ?

1 year ago
OOP Java

Java has two types of exceptions: checked exceptions and unchecked exceptions. Unchecked exceptions do not need to be declared in a method or a constructor’s throws clause, if they can be thrown by the execution of the method or the constructor, and propagate outside the method or constructor boundary. On the other hand, checked exceptions must be declared in a method or a constructor’s throws clause. See here for tips on Java exception handling.

More related questions

Questions Bank

View all Questions

Top