In Chapter 2, Java Language Basics, we had an overview of many aspects of Java as a language, and even defined what statements are. Now, we will look closer into the core elements of Java more systematically.
The word "elements" is quite overloaded (playing on the analogy with method overload). In Chapter 5, Java Language Elements and Types, we introduced input elements, those that are identified by the Java specification: whitespace, comment, and token. That is how the Java compiler parses the source code and makes sense of it. The list of tokens includes identifiers, keywords, separators, literals, and operators. That is how the Java compiler adds more meaning to the tokens it encounters.
While discussing the input elements, we explained that they are used to build more complex elements of language. In this chapter...