previous | start | next

Syntax 14.1: Throwing an Exception

  throw exceptionObject;

Example:

 
throw new IllegalArgumentException();

Purpose:

To throw an exception and transfer control to a handler for this exception type


previous | start | next