Our Best Offer Ever!! Summer Special - Get 3 Courses at 24,999/- Only. Read more
Hire Talent (HR):+91-9791 444 054

General

Wrapper Class in Java

Wrapper Class in Java

Wrapper Class in Java

Some times values we need to store in objects instead of primitives at that time wrapper classes are helpful to store.This will wrap the primitives into a objects and converting primitive into Object is call Boxing and Converting Object into corresponding primitive is called unboxing. From java 1.5 onwards auto boxing and unboxing came into picture.

int – Integer
byte – Byte
short – Short
long – Long
double – Double
boolean – Boolean
float – Float
char – Char

The above are the primitive types and their corresponding Wrapper classes. Number class is the parent for all this wrapper classes.

Click Here-> Get Java Training with Real-time Projects

Besant Technologies WhatsApp