AP® Computer Science A glossary

Syntax error

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

A mistake where the rules of the programming language are not followed. The compiler detects it.

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

A syntax error breaks the rules of Java, for example a missing ; or ). The compiler reports it, and the program cannot run until it is fixed.

// does not compile
int lives = 3
System.out.println(lives);
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