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
How do you escape sequences in java?
What is the length of a string?
Why Java doesn’t support multiple inheritance?
Write a program to find the greatest of three numbers in java?
Can you declare an interface method static?
Which eclipse is best for java?
Why does java not support operator overloading?
How do you convert int to char in java?
What is the difference between preemptive scheduling and time slicing in java programming?
What is the protected method modifier?
What is pre increment and post increment in java?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What is exception in java?
What do you know about the garbage collector?
Explain the scope of a variable.