Chapter 4. Types, Values, and Variables
I send no agent or medium,offer no representative of value,but offer the value itself.
|--Walt Whitman, Carol of Occupations (1855), in Leaves of Grass|
The Java programming language is a strongly typed language, which means that every variable and every expression has a type that is known at compile time. Types limit the values that a variable (§4.12) can hold or that an expression can produce, limit the operations supported on those values, and determine the meaning of the operations. Strong typing helps detect errors at compile time.
The types of the Java programming language are divided into two categories: primitive types and reference types. The primitive types (§4.2) are the
boolean type and the numeric ...