Handling Exceptions
-
Exceptions are thrown by code that encounters an
unexpected or uncommon condition
-
Exceptions are thrown up the call stack
until they are caught
-
An exception is just an object, and can contain
arbitrary information
-
A method must declare the exceptions it might
throw using a throws
statement
-
Exceptions are handled within try-catch-finally blocks