What is the use of Wrapper class
You can create an object of Wrapper class using a String or a primitive data type
- Integer num = new Integer (4); or
- Integer num = new Integer (-4?);
Note: num is an object over here not a primitive data type
You can get a primitive data type from a Wrapper using the corresponding value function
- int primNum = num.intValue() ;