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
Write a program to calculate factorial in java?
Does unicode support all languages?
Explain implementation and how is it different from conversion?
What is data member in java?
Explain the importance of finalize() method.
What is class level lock ?
Can an integer be null java?
Is constructor inherited?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
What about features of local inner class?
What do you mean by inner class in java?
What is the size of a string in java?
What is method reference in java?
What is a constructor overloading in java?
Can we declare the main method of our class as private?