title: Why does creating a big Java array consume so much memory?
body: <p>Why does the following line </p>
  
  <pre><code>    Object[] objects = new Object[10000000];
  </code></pre>
  
  <p>result in a lot of memory (~40M) being used by the JVM? Is there any way to know the internal workings of the VM when allocating arrays?</p>