Table of contents
Need For Wrapper Class
The need for wrapper classes is to wrap primitives into objects so that we can handle primitives like objects.
To define several utility functions which are required for primitives.
Primitive Data Types
int
short
float
long
byte
boolean
For each primitive data type, we have an equivalent wrapper class as shown below
byte-Byte
int-Integer
char-Character
float -Float
short-Short
bool - Boolean
Almost every wrapper class contains two constructor
One takes a primitive type as input
The second one takes string type as input
If the string input I not properly formatted, that is if the input is not a number then we will get NumberFormat Exception
Character class contains only one constructor which can take only input type character only