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
Is nullpointerexception checked or unchecked?
What is difference between fail-fast and fail-safe?
Difference between arraylist and hashset in java?
how to split string in java?
What are meta-annotations?
Compare overloading and overriding?
What do you understand by copy constructor in java?
Is it possible to use string in the switch case?
What are the rules for naming an array?
Can we use a default constructor of a class even if an explicit constructor is defined?
What are heap memory and stack memory and what are memory tables.
What is the final field modifier?
When is the finally clause of a try-catch-finally statement executed?
What is the use of parse function in java?
What are predefined functions?