- A Java program is a collection of classes, with each class containing declarations and methods. The smallest units in a program are tokens like keywords, identifiers, literals, operators, and separators.
- There are two main data types in Java: primitive types (like int, double, boolean) and reference types (like classes). Primitive types include numeric, character, and boolean types.
- Arrays are objects that hold a fixed number of values of a single type and are commonly used to store collections of data. Array variables are declared with a type followed by square brackets, and must be initialized before use.