by Dinesh Thakur

Wrapper Classes:-  We know that Vectors can’t handle Primitives data types like int, float ,char, long So that Primitives data type may be Converted into object data types by using wrapper classes those are contained in java.lang packages The Various Wrapper Classes are :-


 1) Integer

2)  Float

       3) Character


These are used When a List Contains Elements those are String in nature and we wants to convert them into primitives data type then we have to use Wrapper Class Wrapper Classes will First Convert the String into the object data type eithet it may beint, float ,char etc and after that we will be able to convert the object data type into primitives date type Many Times we were using Wrapper Class Like Integer.parseInt(“123”) This is also a Wrapper Class (Integer) For Converting a String into int data type