use of wrapper classes?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about data types?

577


what is the difference between the methods sleep() and wait()? : Java thread

517


What is anagram in java?

524


What is the difference between array list and vector in java?

509


What is difference between word and integer?

598






What is callablestatement? How you can call stored procedure to pass in parameter?

545


Define linked list and its features with signature?

541


What are the differences between wait() and sleep()?

542


What is starvation?

685


What is nan inf?

510


Is 0 a prime number?

575


How to split a string in java?

630


What is hashing in java?

571


What is the use of join method?

580


What is the impact of declaring a method as final?

565