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 comparable and comparator interface? List their differences
What is the difference between Java1.4 and Java1.5
worst case complexities of Quick sort and Merge sort.
What is jagged array in java?
How do you sort arrays in java?
Is hashset ordered java?
Describe different states of a thread.
What is jvm? Why is java called the platform independent programming language?
What is string literal in java?
What is an anonymous class in java?
How can we create an immutable class in java?
What is the difference between JDK and JVM?
How do you create a reference in java?
What are the 7 types of characters?
What is array pointers ?