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

What is starvation?

0 Answers  


What is java object name?

0 Answers  


What are the procedures?

0 Answers  


Can a class be private?

0 Answers  


Write a java program to check if a number is prime or not?

0 Answers  






What are the differences between stringbuffer and stringbuilder?

0 Answers  


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread

0 Answers  


What do you mean by local class?

0 Answers  


What is a superclass?

0 Answers  


Name the methods that used to get and set the text label displayed by a Buttonobject?

1 Answers  


Explain importance of throws keyword in java?

0 Answers  


Java.util.regex consists of which classes?

0 Answers  


Categories