semantic error
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.