Skip to content
UPEEC

Primitive Types

Eight built-in value types: `byte`, `short`, `int`, `long`, `float`, `double`, `char`, `boolean`.

Beginner
Comments 0

Fixed sizes on every platform (int is always 32-bit). Integer overflow wraps silently — use Math.addExact to detect it.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.