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
Explain about interrupt() method of thread class ?
What are the types of java?
Explain about wait() method?
When will you define a method as static?
Can I import same package/class twice?
How would you convert bytes to string?
Why isn’t there operator overloading?
What do you understand by java virtual machine?
Why do we need variables?
Explain about serializable interface in java?
What is meant by polymorphism?
What is Java Package and which package is imported by default?
What is anagram number?
Can we overload destructor in java?
How to create a fecelet view?