previous | start | next

Syntax 15.2: Exception Specification

 
accessSpecifier returnType methodName(parameterType parameterName, . . .)
      throws ExceptionClass, ExceptionClass, . . .

Example:

 
public void read(BufferedReader in)
      throws IOException

Purpose:

To indicate the checked exceptions that this method can throw

previous | start | next