Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5
A Wrapper class is a class which contains the primitive data types (int, char, short, byte, etc). In other words, wrapper classes provide a way to use primitive data types (int, char, short, byte, etc) as objects. Wrapper Class will convert primitive data types into objects. The objects are necessary if we wish to modify the arguments passed into the method (because primitive types are passed by value).
15th Aug 2020, 10:36 AM
Vishakha Shrivastav
Vishakha Shrivastav - avatar