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 abstract class constructor called?
Is null an object java?
What is re-factoring in software?
Explain the differences between static and dynamic variables?
Where import statement is used in a java program?
What are the approaches that you will follow for making a program very efficient?
What is ‘has a’’ relationship in java?
What are the types of collections in java?
Can we increase size of array?
What differences exist between iterator and listiterator?
What is Java Package and which package is imported by default?
How to implement an arraylist in java?
What are the drawbacks for singleton class?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
What is a substitution variable?