by Dinesh Thakur Category: Classes

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


About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.

Related Articles