AP® Computer Science A glossary
Exception
Course: AP® Computer Science A Shows up in: Unit 1: Using Objects and Methods
A run-time error caused by an unexpected problem the compiler did not detect. It interrupts the normal flow of execution.
Appears in the course and exam description (CED): 1.1.C.4
An exception is a type of run-time error. In this course an exception stops the program, so the statements after it do not run. Unit 1 names three: ArithmeticException, NullPointerException and StringIndexOutOfBoundsException.