Wrapper classes are used to represent primitive values (boolean, byte, char, double, float, int, long, short) as objects. Wrapper classes normally have 2 constructors. One with formal String parameter and the other correspondiing fundamental data type. One important point to remember is that once a wrapper object has a value assigned to it, that value cannot be changed.
(more…)