+ 2
What is wrapper classes in Java?
2 Respuestas
+ 4
Wrapper classes, are classes used to "wrap" primitive types into objects
0
Wrapper classes converts the java primitives into the reference types (objects). Every primitive data type has a class dedicated to it. These are known as wrapper classes because they “wrap” the primitive data type into an object of that class. Refer to the below image which displays different primitive type, wrapper class and constructor argument.