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.

Learn it properly, with a checkpoint 1.1 Introduction to Algorithms, Programming, and Compilers

Related terms

Was this page helpful?

No names are ever shown, and every public comment is checked by us first. Please do not include personal details. To get a reply, email [email protected].

↑ Top

Enlarged view of the selected figure