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

When should I use stringbuffer?

571


what are three ways in which a thread can enter the waiting state? : Java thread

572


Can we overload destructor in java?

538


Is empty list java?

521


What are the java ide’s?

571






Why packages are used?

543


Why generics are used in java?

550


Why do we override tostring method in java?

498


If a class is declared without any access modifiers, where can the class be accessed?

593


What do you mean by local variable and instance variable?

510


What does the exclamation mark mean in java?

590


What does this () mean in java?

543


What is nullpointerexception?

552


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

678


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

1444