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
What is t in parametric equations?
Why there are some null interface in java? What does it mean?
What is the difference between abstract classes and interfaces?
What are the 4 versions of java?
Write a program to check string is palindrome without using loop?
Define linked list and its features with signature?
what are the disadvantages of indexes in oracle?
What is methods and methodology?
What is a JAR file?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?
What is the difference between compile-time polymorphism and runtime polymorphism?
Can I uninstall java?
What is immutable state?
what is the swingutilities.invokelater(runnable) method for? : Java thread
How can we create a synchronized collection from given collection?