Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
Wrapper class is a class that wraps primitive types int -> class Integer double -> Double etc. They're used when you need to pass a primitive type somewhere where an object is needed, most often when you need to create an instance of generic (parametrized) class: You can't do ArrayList<int>, instead you use ArrayList<Integer>
11th Sep 2018, 1:57 PM
michal