19
Checked and Unchecked Exceptions
•There are two categories of exceptions:
–Unchecked
– Checked.
•Unchecked exceptions  derived from Error, which are thrown when a critical error occurs, should not be handled.
•Unchecked exceptions derived from RuntimeException should be handled or prevented.
•Checked exceptions derived from Exception  have to be handled by you.