Wrapper classes in Java convert primitive data types into objects. They are useful when working with Collections, Streams, Generics, and APIs that require objects instead of primitives.
Complete your tour of JDK 5’s language features by exploring autoboxing and unboxing, the enhanced for loop, static imports, varargs, and covariant return types. This article wraps up my three-part ...