<<< Methods that throw exceptions | Index | InputMismatchException class >>> |
The syntax for the try statement
try { statements } catch (ExceptionClass exceptionName) { statements }
A try statement anticipates that an exception may occur
A catch block to provide a handler for the exception
<<< Methods that throw exceptions | Index | InputMismatchException class >>> |