Friday, August 7, 2015

Lexical Issues

Java programs are a collection of whitespace, identifiers, literals, comments, operators, separators, and keywords.

Whitespace
In Java, whitespace is a space, tab, or newline.
Java is a free-form language. This means that you do not need to follow any special indentation rules.
For instance, the Example program could have been written all on one line or in any other strange way you felt like typing it, as long as there was at least one whitespace character between each token that was not already delineated by an operator or separator.

Identifiers

0 comments:

Post a Comment