Wrapper Classes in Java — a practical guide to Java wrapper classes with clear examples you can reuse in real projects.
Java Tutorial Series (59/90). Prefer one article? Read the complete Java tutorial.
Short description
Autoboxing converts between primitives and wrappers automatically.
Autoboxing
Integer x = 10; // autobox
int y = x; // unbox
List<Integer> nums = List.of(1, 2, 3);