created: 04/30/00; revised: 09/13/00, 07/06/02, 06/07/03, 07/22/06
Java exceptions provide a powerful mechanism for writing robust, user-friendly code. This chapter continues the discussion started in the last chapter.
catch
parameterIndexOutOfBoundsException
throws
clausethrow
statementException
class
Here is a catch{}
block:
catch( Exception exp ) { }
When the block catches an exception, what does exp
refer to?