Answer to Question #121224 in Java | JSP | JSF for Lebenis

Question #121224
Explain what is meant by thesyntaxand thesemanticsof a programming language.GiveJava examples to illustrate the difference between asyntax errorand asemantics error.Use different examples than those found in the textbook.
1
Expert's answer
2020-06-11T07:40:40-0400

Syntax - rules for writing language constructs (which constructs belong to the language).

Semantics - the meaning of language constructs (how constructs should be worked out by a computer).

A semantic error is comparing strings with a comparison operator (String == String) instead of using the equals function.

Syntax error - the absence of a semicolon at the end of the line, errors in the name of the called functions.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS