Java · Variables and primitive types

Types: int, double, boolean, char, String

Every Java variable is declared with a type, and the type decides which values it can hold.