Hi friends
I want to know what is wrapper class in java ?
Thank you.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Jun 10, 2012, 1:54 PM
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