Wrapper classes “wrap” primitive data types into objects (useful for collections, null handling, etc.)
Primitive Wrapper Class
byte Byte
short Short
int Integer
long Long
float Float
double Double
char Character
boolean Boolean
Example:
int age = 10;
Integer age1 = Integer.valueOf(age); // boxing
🧩 Memory tip:
“Wrapper = gift box for primitive” 🎁
Top comments (0)