use of wrapper classes?

Answers were Sorted based on User's Feedback



use of wrapper classes?..

Answer / rakesh kumar mishra

Collection accepts only object not primitive data-type And
server also works on only Objects.
So By help of wrapper class we can convert primitive
data-type to Object.

Is This Answer Correct ?    18 Yes 0 No

use of wrapper classes?..

Answer / vino

wrappper class uses for primitive datatype act as object.
ex:int-Integer

Is This Answer Correct ?    0 Yes 0 No

use of wrapper classes?..

Answer / qamrun nisa

Wrapper classes are used to wrap primitive types (eg: int,
double, etc) in Objects which can be placed into Vectors,
and many, many other uses.

Following table lists the primitive types and the
corresponding wrapper classes:

Primitive Wrapper

Boolean java.lang.Boolean
Byte java.lang.Byte
Char java.lang.Character
double java.lang.Double
Float java.lang.Float
Int java.lang.Integer
Long java.lang.Long
Short java.lang.Short
Void java.lang.Void

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Core Java Interview Questions

Explain about field hiding in java?

0 Answers  


How will you initialize an Applet?

0 Answers  


Why are lists ordered in java?

0 Answers  


Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls

0 Answers  


Explain list interface?

0 Answers  






how exactly garbage collection take place?

4 Answers  


Explain about static nested classes in java?

0 Answers  


What classes of exceptions, thrown by a throw statement?

2 Answers  


How garbage collection is done in java?

0 Answers  


How do you define a method?

0 Answers  


What is use of set in java?

0 Answers  


Why string is not a wrapper class?

0 Answers  


Categories