What are wrapper classes?

1 votes
Anonymous User asked 14-Nov-2017 in programming by Anonymous User
edited 14-Nov-2017 by Siya-Chandra

What are wrapper classes?

1 Answer

0 votes
Arti Mishra answered 23-May-2018 by Arti Mishra
'Wrapper class in java'
In Java, a wrapper class is a mechanism that provides the facility to convert primitive data types into object and object into primitive data types. In other words, you can say that wrapper class is those class whose object is wrapped as a primitive data types.

Here is the list of Wrapper Classes.

Primitive DataType   Wrapper class
boolean   Boolean
char  Character
byte  Byte
short  Short
int  Integer
long    Long
float    Float
double  double 
 What are wrapper classes?