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 code optimizations techniques you follow in general practice?

2 Answers   Accenture, TCS, Wipro,


can anyone explain me the concept of autoboxing?

3 Answers  


What is vector?

0 Answers  


how to call a method in different package?

4 Answers  


What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?

0 Answers  


what is jndi?

1 Answers   TCS,


Difference between overloading and Overriding. <Giving a confusing example to test the concept.> (also asked in PA Consultancy Group,iflex,Value chain,IBM,CTS,Accenture, Tarang>

12 Answers   Accenture, CTS, Extensio, IBM, iFlex, PA Consulting, Symphony, Tarang,


What are the OOPS concepts in Java ?

4 Answers   Satyam,


What is the use of accept () method in java?

0 Answers  


What is meant by attribute?

0 Answers  


What is binary search in java?

0 Answers  


How many bits is a boolean?

0 Answers  


Categories