Java · Variables and primitive types

Limits: overflow and rounding error

An int and a double each have a fixed size, so some numbers are too big for them, or can't be stored exactly.