Any statement in a Java application can issue an exception, or error. Figure 26.12 shows how to trap for and respond to these exceptions using try/catch logic.
Figure 26.12: Java exception handling.