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 comparable and comparator interface? List their differences

1099


What is the difference between Java1.4 and Java1.5

2305


worst case complexities of Quick sort and Merge sort.

1022


What is jagged array in java?

1079


How do you sort arrays in java?

925


Is hashset ordered java?

1081


Describe different states of a thread.

997


What is jvm? Why is java called the platform independent programming language?

1017


What is string literal in java?

1046


What is an anonymous class in java?

1095


How can we create an immutable class in java?

1065


What is the difference between JDK and JVM?

1261


How do you create a reference in java?

973


What are the 7 types of characters?

1075


What is array pointers ?

1022