The data itself occupies that much, but an array is a java class. It is derived from java.lang.Object just like any other class in java. And the class itself takes a little bit more memory. So it is more likely to be like....

Pretty much, yes. Arrays also need 4 bytes to store the length, and the memory seems to be padded so that the number of bytes used becomes a multiple of 8. Some memory is also required to save the address of the array.http://www.javaspecialists.co.za/archive/Issue029.htmlhttp://www.javaspecialists.co.za/archive/Issue078.html