In Java, the Wrapper class is nothing but wrapped around a data type to make them use as objects. Numeric strings can be converted into numeric values using wrapper classes. The valueOf() method is available in all wrapper classes except Character. Wrapper classes are available with typeValue() method. This method returns the value of the object as its primitive type.
Example:
public class Main {
public static void main(String[] args) {
Integer myInt = 78;
Double myDouble = 4.78;
Character myChar = 'S';
System.out.println(myInt);
System.out.println(myDouble);
System.out.println(myChar);
}
}
Here, the wrapper class is used instead of the primitive data type to convert data types into objects.