Computer Applications
What are wrapper classes?
Java Library Classes
13 Likes
Answer
Wrapper classes are specially designed classes that act as wrappers to primitive data types so that primitive values can be accessed as objects.
For example, Integer is a wrapper class for int data type and Float is a wrapper class for float data type.
Answered By
9 Likes
Related Questions
- What is the output of this program? - class Output { public static void main(String args[]) { Integer i = new Integer(257); byte x = i.byteValue(); System.out.print(x); } }- 0
- 1
- 256
- 257
 
- What is the output of this program ? - class Output { public static void main(String args[]) { Integer i = new Integer(514); float x = i.floatValue(); System.out.print(x); } }- 0
- 1
- 257
- 514.0
 
- Name the numeric wrapper classes in Java. 
- What is the need of wrapper classes when there are primitive datatypes ?