Skip to main content

2 docs tagged with "autoboxing"

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.

Wrapper Classes

Java's eight primitive wrapper types — Integer, Long, Double, and friends — covering autoboxing, caching traps, parsing, and when to use primitives vs objects.