Hi friends
I want to know what is wrapper class in java ?
Thank you.
Wrapper Class in Java
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Jun 10, 2012, 9:54 AM EDT
Wrapper classes allow primitive data types to be accessed as objects. They are one per primitive type: Boolean, Byte, Character, Double, Float, Integer, Long and Short. Wrapper classes make the primitive type data to act as objects.
Need wrapper classes in Java?
Dealing with primitives as objects is easier at times. Most of the objects collection store objects and not primitive types. Many utility methods are provided by wrapper classes. To get these advantages we need to use wrapper classes. As they are objects, they can be stored in any of the collection and pass this collection as parameters to the methods.
Features of the Java wrapper Classes.
* Wrapper classes convert numeric strings into numeric values.
* The way to store primitive data in an object.
* The valueOf() method is available in all wrapper classes except Character
* All wrapper classes have typeValue() method. This method returns the value of the object as its primitive type.
Please refer the below link
http://www.go4expert.com/forums/showthread.php?t=22183
Thanks