I came across a class using Integer variables to capture size to be used in a for loop. Is this good practice or should we use the int primitive data type?
I
Promote primitive types always where it is possible.
primitive types can not be used as GenericArgument or a null.