thepointman.dev_

Courses / Java Language

Java Type System

beginner8 lessons

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

  1. 01

    The Eight Primitives — Size, Range and Why They Exist

    soon
  2. 02

    Stack Storage vs Heap Storage — Where Each Type Lives

    soon
  3. 03

    Wrapper Classes — int vs Integer and the Null Problem

    soon
  4. 04

    Autoboxing and Unboxing — The Magic and Its Cost

    soon
  5. 05

    The Integer Cache — Why == Works Up to 127 and Fails at 128

    soon
  6. 06

    Widening and Narrowing Conversions — The Implicit and Explicit

    soon
  7. 07

    Type Promotion in Expressions — Why byte + byte = int

    soon
  8. 08

    var (Java 10) — Local Type Inference and Its Limits

    soon