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

Explain about interrupt() method of thread class ?

1172


What are the types of java?

1172


Explain about wait() method?

1075


When will you define a method as static?

1140


Can I import same package/class twice?

1009


How would you convert bytes to string?

1052


Why isn’t there operator overloading?

1142


What do you understand by java virtual machine?

1239


Why do we need variables?

1034


Explain about serializable interface in java?

1049


What is meant by polymorphism?

1074


What is Java Package and which package is imported by default?

1152


What is anagram number?

1020


Can we overload destructor in java?

1047


How to create a fecelet view?

1044