first draft: 04/30/00

CHAPTER 81 --- More about Exceptions

Java exceptions provide a powerful mechanism for writting robust, user-friendly code. This chapter continues the discussion started in the last chapter.

Chapter Topics:

  • Using the catch  parameter.
  • IndexOutOfBoundsException.
  • Checked and unchecked exceptions.
  • The throws clause.
  • The throw statement.
  • Extending the Exception class.

QUESTION 1:

(Review: ) Here is what a catch{} block looks like:

catch( SomeException exp )
{
}

When the block catches an exception, what does exp refer to?

Click Here after you have answered the question