semantic error

1 topic · 1 source

Technology› Programming

Java

An error in the meaning of program. A statement may have no syntax errors, but might still break the rules of the Java language. For instance, if ivar is an int variable, the following statement is syntactically correct

 ivar = true; 
However, it is semantically incorrect, because it is illegal to assign a boolean value to an integer variable.

Cite this definition

APA
MLA
Chicago