File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes wrapper class in enterprise application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "wrapper class in enterprise application" Watch "wrapper class in enterprise application" New topic

wrapper class in enterprise application

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 580
What is meant by wrapper class.I have idea that Primitive data type are converted into corresponding object using wrapper class.Apart from this ,what is the real time use of Wrapper class in any enterprise application
Manuel Leiria
Ranch Hand

Joined: Jul 13, 2007
Posts: 171
I'm not sure if this is the context where you want some explanation about a wrapper class, but here it goes:

Imagine that you have a method that must return two values, or an object and a value. What do you do? well, create a wrapper class to grab the value and the object and return that class (but some questions arise: aren't your method trying to do more than it should? make sense, in terms of OO create such a class?)

hope it helps,

Manuel Leiria<br /> <br />--------------<br />Peace cannot be kept by force; it can only be achieved by understanding. <br /> Albert Einstein
I agree. Here's the link:
subject: wrapper class in enterprise application
It's not a secret anymore!