The wrapper classes also offer utility methods for converting to and from the int values they represent. Thus if you have a string that could also represent a number, you can use a wrapper class to perform that calculation.
The methods of the wrapper classes are all static so you can use them without creating an instance of the matching wrapper class. Note that once a wrapper has a value assigned to it that value cannot be changed.
An example of their use is when you want to add an integer to a vector.Vectors only contain objects so you have to convert the "wrap" the primitive type and conversion from wrapper to primitive is easy
Comment