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
Can java list be null?
What is a default constraint?
What are the two basic ways in which classes that can be run as threads may be defined?
Explain importance of throws keyword in java?
What is internal iteration in java se 8?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
Explain the importance of thread scheduler in java?
What is a boolean field?
How is hashset defined in java?
How do you convert string to int in java?
Can we use static class instead of singleton?
Wha is the output from system.out.println(“hello”+null); ?
What is a lock or purpose of locks in java?
Garbage collection in java?
Explain hashset and its features?