aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Use of Wrapper class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Use of Wrapper class" Watch "Use of Wrapper class" New topic
Author

Use of Wrapper class

Prabhat Shankar
Greenhorn

Joined: Oct 08, 2009
Posts: 27
Hi,

Why we go for wrapper class instead of primitive in java and what is the use of wrapper class.

Prabhat Shankar Consumer Court,Consumer Court India,Consumer Complaints,Complaint India, Web Value
manoj r patil
Ranch Hand

Joined: Jun 06, 2002
Posts: 181
think of storing primitive types in list which accepts just objects...


love your job and not your company;
...because you never know when your company will stop loving you!
Prithvi Sehgal
Ranch Hand

Joined: Oct 13, 2009
Posts: 774
Hello,

Wrapper classes are basically there so that primitives can be used as Objects in collections.

Hope this helps,


Prithvi,
My Blog, Follow me on Twitter,Scjp Tips, When you score low in mocks, Generics,Scjp Notes, JavaStudyGroup
Prabhat Shankar
Greenhorn

Joined: Oct 08, 2009
Posts: 27
Thanks a lot ...
Prithvi Sehgal
Ranch Hand

Joined: Oct 13, 2009
Posts: 774
Dear Prabhat,

You are welcome.

Best Regards,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Use of Wrapper class