Answer Posted / praveen
Say supposing there is a requirement to store only the
object in an array A.The Primitive types cannot be stored in
the same array as the array can accommodate only Objects
here is where Wrapper Class come into picture.ie, we create
wrapper for the primitive types.One such example is as below
Ex:int i;
Wrapper class for the primitive type(int) is created as below:
INTEGER i = new INTEGER();
| Is This Answer Correct ? | 58 Yes | 14 No |
Post New Answer View All Answers
How do you remove duplicates in java?
Explain about complier design(phases)
What is the final blank variable?
What is method overloading with type promotion?
Where can I find jdk in my computer?
What is polymorphism in java? What are the kinds of polymorphism?
a thread is runnable, how does that work? : Java thread
Can we store variables in local blocks?
What is parsing in grammar?
What is dynamic array in java?
How do you clear a list in java?
What is the advantage of preparedstatement over statement?
What is the function of compareto in java?
What is maximum size of arraylist in java?
What are the types of java?