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

Can java list be null?

543


What is a default constraint?

611


What are the two basic ways in which classes that can be run as threads may be defined?

546


Explain importance of throws keyword in java?

560


What is internal iteration in java se 8?

624






Given a singly linked list, determine whether it contains a loop or not without using temporary space?

580


Explain the importance of thread scheduler in java?

591


What is a boolean field?

523


How is hashset defined in java?

517


How do you convert string to int in java?

551


Can we use static class instead of singleton?

575


Wha is the output from system.out.println(“hello”+null); ?

683


What is a lock or purpose of locks in java?

582


Garbage collection in java?

583


Explain hashset and its features?

572