AP® Computer Science A glossary

Run-time error

Also called: runtime error

Course: AP® Computer Science A Shows up in: Unit 1: Using Objects and Methods

A mistake that occurs while the program is running. It typically makes the program stop abnormally.

Appears in the course and exam description (CED): 1.1.C.3

A run-time error happens during execution, after the program compiled. It usually makes the program terminate abnormally. Exceptions such as ArithmeticException are run-time errors.

System.out.println("Start");
System.out.println(10 / 0);

Output:

Start
Exception in thread "main" java.lang.ArithmeticException: / by zero
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