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

In Inheritence concept, i have a static method in super class and i am inheriting that class to one sub class.in that case the static method is inherited to sub class or not????

12 Answers   Accenture,


what is platform independence in java?

5 Answers   CSC, HSBC,


How to Sort Strings which are given in List and display in ascending order without using java api.

1 Answers   LIC,


What is the difference between dom and sax parser in java?

0 Answers  


What is variable argument in java?

0 Answers  






what are the differences between final,finally,finalize methods?

14 Answers   IBM,


how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion

2 Answers   SAP Labs,


define polymorphism in java

0 Answers  


what is meant by Byte code concept in Java?

0 Answers   Aspire,


What do you mean by exception handling in Java?

0 Answers   Atos Origin,


Write a program to solve producer consumer problem in java?

0 Answers  


What are operators and its types?

0 Answers  


Categories