title: Is there a low-level difference between int[large][small] or int[small][large] in Java?
body: <p>This question will probably require some compiler knowledge to answer. I am currently working on a project where I will be creating an array that may be either</p>
  
  <pre><code>int[2][veryLargeNumber]
  </code></pre>
  
  <p>or </p>
  
  <pre><code>int [veryLargeNumber][2]
  </code></pre>
  
  <p>It makes no difference logically but I was thinking that the form (and therefore size) in memory may differ (perhaps the question should be, are the compilers clever enough to rearrange arrays to suit them)?</p>