What are Semantic errors in a programming language?

Answer:
Semantic or Syntax errors are errors in the way a programmer has written his code. The code does not conform to language standards and is incorrect.

Ex:

for(int i = 0, i++, i<10) {
}

The above is a syntactically incorrect declaration of a for loop in Java. The compiler would not let you compile this code successfully.
First answer by Anandvijayakumar. Last edit by Anandvijayakumar. Contributor trust: 782 [recommend contributor recommended]. Question popularity: 1 [recommend question].