Julho 06
Prof(s). Eduardo Bezerra & Ismael H. F. Santos                                                2
Types of Exceptions
nChecked exceptions
nExceptions that inherit from the Exception class are checked exceptions. Client code has to handle the checked exceptions thrown by the API, either in a catch clause or by forwarding it outward with the throws clause.
nUnchecked exceptions
nRuntimeException also extends from Exception. However, all of the exceptions that inherit from RuntimeException get special treatment. There is no requirement for the client code to deal with them, and hence they are called unchecked exceptions.
nC++ and C# do not have checked exceptions at all; all exceptions in these languages are unchecked.