I was wondering if there is a difference in the memory occupied by Integer n, and int n.
Integer n
int n
I know int n occupies 4 bytes normal
For int: 4 bytes used per element without wrappers, and 16 per element with a wrapper.
A wrapped double reports as 24 bytes per element, with the actual double value as 64 bits (8 bytes).
For more details here