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

What is t in parametric equations?

991


Why there are some null interface in java? What does it mean?

1127


What is the difference between abstract classes and interfaces?

1023


What are the 4 versions of java?

1168


Write a program to check string is palindrome without using loop?

1036


Define linked list and its features with signature?

1002


what are the disadvantages of indexes in oracle?

2558


What is methods and methodology?

1029


What is a JAR file?

1044


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

1098


What is the difference between compile-time polymorphism and runtime polymorphism?

999


Can I uninstall java?

1055


What is immutable state?

1028


what is the swingutilities.invokelater(runnable) method for? : Java thread

1042


How can we create a synchronized collection from given collection?

1085