All Subjects
Light
AP Computer Science A
A wrapper class in Java is a class that provides an object representation of a primitive data type. It allows the primitive data type to be used as an object and provides helpful methods to manipulate and interact with the data.
The automatic conversion of a primitive data type into its corresponding wrapper class object.
The automatic extraction of the wrapped value from a wrapper class object back into its original primitive data type.
ValueOf(): A method provided by wrapper classes to convert other types, such as strings or other objects, into their corresponding wrapped values.