Academic Java    Java Tutorial  >  Exceptions

Java Exceptions

An exception is an unusual condition that can happen during execution.

When these situations happen either the execution will come to a halt, or, if the programmer has catered for the exception, it is dealt with appropriately.

Programs here cover:

  • what happens if an exception isn't catered for
  • how to 'catch' an exception
  • how to 'throw' an exception
  • the Exception class
  • subclassing the Exception class.