Lesson 1.1b - Java Language Elements Vocabulary is the set of all words and symbols in the language. Examples in Java are the words public and class, as well as the symbols { and =. Syntax consists of the rules for combining words into sentences, or statements as they are more usually called in programming languages. For example, in Java we use a semicolon to end a statement, and require the use of lowercase letters for keywords. Semantics define the rules for interpreting the meaning of statements. As an example, the expression (x + 3) * 5.2 means go into the parentheses first and add 3 to x, followed by multiplying the result by 5.2.
|
|||||||||||
© DanShuster.com