Skip to main content

Syntax Error

Is an error in the syntax of a sequence of characters or tokens that is intended to be written in compile-time. A program will not compile until all syntax errors are corrected. For interpreted languages, however, a syntax error may be detected during program execution, and an interpreter’s error messages might not differentiate syntax errors from errors of other kinds. There is some disagreement as to just what errors are ‘syntax errors’. For example, some would say that the use of an uninitialized variable’s value in Java code is a syntax error, but many others would disagree and would classify this as a (static) semantic error.