Java Language Elements and Types

This chapter starts a systematic introduction to Java with a definition of language elements—identifiers, variables, literals, keywords, separators, and comments. It also describes Java types—primitive types and reference types. Special attention is applied to the String class, enum types, and arrays.

In this chapter, we will cover the following topics: