Answer Posted / irshad ahmad
Wrapper classes are classes that are used to make primitive
data types into objects, and to make wrapped objects into
primitives because
As we know that vector in java can hold only object; but
can't directly store primitive data types, like int,float,
char, long, double. therefore we need to convert simple data
type to object. This can we done using wrapper classes.
Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
Can a vector contain heterogenous objects?
Can a class be private or protected in java?
What happens if a constructor is declared private?
What is Java Reflection API? Why it’s so important to have?
What are format specifiers in java?
How can we access some class in another class in java?
How are the elements of a gridbaglayout organized?
What is the driver class?
What is the difference between an argument and a parameter?
If goto and const is reserve words than why it is not work in java?
Can a abstract class be declared final?
How do you sort arraylist in descending order?
What is the latest version of java?
What is the maximum size of a string in java?
What does += mean in java?