
[]
6.5 Runtime Exceptions
79
If we now run MultiplyClass, we get the following result:
> java MultiplyClass i00 98
arguments must be < i00
ArgumentTooBigException
Rather than printing the trace of the method call stack, only the code within the catch group
of statements is executed.
6.5 Runtime Exceptions
Recall from the previous sections that Java has a requirement that any exception, other than
R~mtimeBxeeption or ~.rror, must be either caught by the method or specified in the throws
clause of the method. Since a runtime exception, as the name suggests, is usually thrown by
the runtime system, it may ...