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 |
How do you override a private method in java?
What is the difference between throw and throws keywords?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
why an outer class cannot be declared as private?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
Can a class have more than one object?
Explain restrictions for using anonymous inner classes?
What are "class access modifiers" in Java?
Can i have abstract class with no abstract methods?
Using callable statement how can you pass out parameters, explain with example?
What are the different types of multitasking?
How do you create a bulleted list?