Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is a Wrapper class?

Answer Posted / praveen

Say supposing there is a requirement to store only the
object in an array A.The Primitive types cannot be stored in
the same array as the array can accommodate only Objects
here is where Wrapper Class come into picture.ie, we create
wrapper for the primitive types.One such example is as below

Ex:int i;
Wrapper class for the primitive type(int) is created as below:

INTEGER i = new INTEGER();

Is This Answer Correct ?    58 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you remove duplicates in java?

957


Explain about complier design(phases)

1023


What is the final blank variable?

1073


What is method overloading with type promotion?

1214


Where can I find jdk in my computer?

921


What is polymorphism in java? What are the kinds of polymorphism?

1008


a thread is runnable, how does that work? : Java thread

930


Can we store variables in local blocks?

1307


What is parsing in grammar?

980


What is dynamic array in java?

966


How do you clear a list in java?

1046


What is the advantage of preparedstatement over statement?

1049


What is the function of compareto in java?

1011


What is maximum size of arraylist in java?

960


What are the types of java?

1028