Errors are severe, system-level failures that an application cannot recover from. Exceptions are application-level issues that disrupts the normal execution of instructions.
Checked exceptions | Unchecked exceptions |
|---|---|
Checked at compile time | Not checked at compile time |
Must be caught or declared | Catching or declaring is optional |
IOException, SQLException | NullPointerException, ArithmeticException |