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 the difference between a break statement and a continue statement?
Convert a BST into a DLL and DLL to BST in place.
What is the purpose of skeleton and stub?
What is structure of java heap? What is perm gen space in heap?
What is anonymous inner class?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
How do you check if an arraylist is not empty?
How do you input a string in java?
Explain the features of java?
Explain the inheritance?
what is the purpose of "virtual"?
Is java a super set of javascript?
What are the four corner stones of oop?
'A class is a template for an object' explain this statement.
What is constructor chaining in java?