+ 2

What is wrapper classes in Java?

25th Nov 2018, 9:17 AM
SACHIN PAGARE
SACHIN PAGARE - avatar
2 Antworten
+ 4
Wrapper classes, are classes used to "wrap" primitive types into objects
25th Nov 2018, 10:28 AM
Dlite
Dlite - avatar
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. 
29th Nov 2018, 3:49 PM
SACHIN PAGARE
SACHIN PAGARE - avatar