title: Java - Integer[] and int[] memory difference
body: <p>I'm trying to get a general idea of the memory cost difference between an Integer array and int array. While there seems to be a lot of information out there about the differences between a primitive int and Integer object, I'm still a little confused as to how to calculate the memory costs of an int[] and Integer[] array (overhead costs, padding, etc). </p>
  
  <p>Any help would be appreciated. Thanks!</p>