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
What is lambda programming?
Do you need to import math in java?
What is an error in java?
How can we make a class singleton?
How many bytes is a char in java?
Which collection allows duplicate values in java?
What is the escape character in java?
What do you mean by formatting?
How does indexof work?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
What is the purpose of a volatile variable?
How do you clear a list in java?
What happens when I use / and % with a negative numerator?
What is structure of java heap? What is perm gen space in heap?
What is java’s garbage collected heap?