Skip to main content

3 docs tagged with "primitives"

View all tags

Primitives vs. Objects

How Java's eight primitive types differ from object references — stack vs. heap, null safety, autoboxing, unboxing, and the performance tradeoffs involved.

Type Conversion

How Java converts values between types — widening, narrowing, implicit promotion, and explicit casting.

Variables & Data Types

The 8 primitive types, reference types, literals, constants, and the final keyword in Java.