Please enable JavaScript to use CodeHS

Chapter 1

Primitive Types

1.3 Variables and Data Types

Variables and Types

Primitive Types

Numeric Type:

Char Type:

Boolean Type:

Reference Types

String Type

Final Keyword

Naming Variables

Variables

Using Final

Swapping Two Values

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Answering Questions