previous
|
start
|
next
Syntax 14.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 a method can throw
previous
|
start
|
next