what is wrapper class and its uses?
Answers were Sorted based on User's Feedback
Answer / vijayakumar chinnasamy
A class enclosed or Wrapped the primitive data type is
called wrapper class.
Number class is the super class for Wrapper class. subclass
of Number classes are Byte,Short,Intger,Long,Float,Double,
Character
primitive values Wrapper class
byte Byte
short Short
int Integer
long Long
float Float
char Character
Mostly the wrapper classes are used to pass the date thru
networks/serializable.
| Is This Answer Correct ? | 3 Yes | 2 No |
What does split function do in java?
What is the difference between Object and Instance?
In case of inheritance what is the execution order of constructor and destructor?
Explain the difference between private, public, package and protected in java?
Can you explain inner class.
Difference between String and String Buffer?
Can Applet have constructors?
why is multiple inheritance not allowed in java?
7 Answers Elementus Technologies, Huawei, Infosys,
Why is stringbuffer called mutable?
What is passing by reference in java?
How many bits is a boolean?
How to perform bubble sort in java?