The eight primitives, their wrapper classes, the Integer cache (-128 to 127), autoboxing costs in loops, widening and narrowing conversions, type promotion in expressions, and var (Java 10). Everything about Java's type system that trips up engineers.
// Lessons
- 01soon
The Eight Primitives — Size, Range and Why They Exist
- 02soon
Stack Storage vs Heap Storage — Where Each Type Lives
- 03soon
Wrapper Classes — int vs Integer and the Null Problem
- 04soon
Autoboxing and Unboxing — The Magic and Its Cost
- 05soon
The Integer Cache — Why == Works Up to 127 and Fails at 128
- 06soon
Widening and Narrowing Conversions — The Implicit and Explicit
- 07soon
Type Promotion in Expressions — Why byte + byte = int
- 08soon
var (Java 10) — Local Type Inference and Its Limits