{[['']]}
Chapter 2: Data Types, Variables and Arrays
Contents of the Chapter
1. The Simple Types
1.1. Integers
1.2. Floating-Points
1.3. Characters
1.4. Boolean
2. Lexical Issues
2.1. Whitespace
2.2. Identifiers
2.3. Literals
2.4. Comments
2.5. The Java Reserved Keywords
2.6. Separators
2.7. A Closer Look at Literals
2.7.1. Integer Literals
2.7.2. Floating-Point Literals
2.7.3. Boolean Literals
2.7.4. Character Literals
2.7.5. String Literals
3. Variables
3.1. Declaring a Variable
3.2. Dynamic Initialization
3.3. The Scope and Lifetime of Variables
4. Type Conversion and Casting
4.1. Java`s Automatic Conversions
4.2. Casting Incompatible Types
4.3. The Type Promotion Rules
5. Arrays
5.1. One-Dimensional Arrays
5.2. Multidimensional Arrays
5.3. Alternative Array Declaration Syntax