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 are the characteristics of Final,Finally and Finalize keywords.
What is tcp ip in java?
Why singleton pattern is better than creating singleton class with static instance?
What are the java ide's? Explain
Can we use different return types for methods when overridden?
What is the use of callablestatement?
What are the restrictions imposed by a Security Manager on Applets?.
How to reverse string in java?
What is the difference between private & public & friendly classes?
Do you know how to reverse string in java?
Explain inheritance in java?
What are nested classes in java?
What is java lang string?
What are the differences between wait() and sleep()?
Is the empty set a singleton?