try {
... code with possible exception ...
} catch (ExceptionClassName e) {
... code to run if exception is thrown ...
} finally {
... code run before finished with exception handling if not interrupted ...
}
you can have multiple catch clauses (for each type of possible exception)
examples will be illustrated using posted demonstration programs