There are two types of exceptions in java language.
- Checked Exceptions
- Runtime Exceptions
A Checked Exception is a part of the method signature, with the method name, arguments and returns. So if a method throws a checked exception, then the caller should have the knowlege about the exception, the deal with it. Thus we say a checked exception is a Exposing of the inner logic of a method.
And anothor way to classify the exceptions: