What is a Wrapper class?

Answers were Sorted based on User's Feedback



What is a Wrapper class?..

Answer / muhammad taahaa

to store primite data type as objects....

Is This Answer Correct ?    2 Yes 0 No

What is a Wrapper class?..

Answer / rakesh

It is sometimes easier to deal with primitives as objects.
Moreover most of the collection classes store objects and
not primitive data types. And also the wrapper classes
provide many utility methods also. Because of these resons
we need wrapper classes. And since we create instances of
these classes we can store them in any of the collection
classes and pass them around as a collection. Also we can
pass them around as method parameters where a method expects
an object.

Is This Answer Correct ?    0 Yes 0 No

What is a Wrapper class?..

Answer / rajat dubey

Wrapper classes allow
primitive data types to
be accessed as
objects.They are one
per primitive
type:Boolean,Byte,Character,Double,Float,Integer,Long
and Short.Wrapper
classes make the
primitive type data to
act as objects.

Is This Answer Correct ?    0 Yes 0 No

What is a Wrapper class?..

Answer / mk@yahoo.co.in

Nothing is impossible

Is This Answer Correct ?    16 Yes 52 No

Post New Answer

More Core Java Interview Questions

How do you do descending order in java?

0 Answers  


Hai friends I am MCA 2006 passout. Spend time in 1 yr for teacing and 5 months in small s/w firm. worked in 4 or 5 months in few places. Presently I am writing bank exams. I want to get back to IT sector. Are there any possibilities. any growth prospects?. I am having some knowledge in core and advanced java. I am so desperate. Any suggestions thanks in advance. u can write to my mail mahidestiny@gmail.com

4 Answers  


How to create an instance of a class if the class has private constructor?

3 Answers  


What is the difference between iterator and list iterator?

0 Answers  


What is serialVersionUID and what is its need?

1 Answers   KPIT,






Do we need to manually write Copy Constructor?

0 Answers   HCL,


Explain java thread life cycle.

0 Answers  


Is java free for commercial?

0 Answers  


Difference between start() and run() method of thread class?

0 Answers  


Explain about the select method with an example?

0 Answers  


What is use of valueof () in java?

0 Answers  


If your team member writes code with lots of static variables and static methods, will it cause any side effects?

3 Answers   KPIT,


Categories