title: Overflow occurs with multiplication
body: <pre><code>long m = 24 * 60 * 60 * 1000 * 1000;
  </code></pre>
  
  <p>The above code creates overflow and doesn't print the correct result.</p>
  
  <pre><code>long m2 = 24L * 60 * 60 * 1000 * 1000;
  long m3 = 24 * 60 * 60 * 1000 * 1000L;
  </code></pre>
  
  <p>The above 2 lines print the correct result. </p>
  
  <p>My questions are-</p>
  
  <ol>
  <li>Does it matter to the compiler which I use, <code>m2</code> or <code>m3</code>?</li>
  <li>How does java starts multiplying? Left to right or right to left? Does 24*60 gets computed first or 1000*1000?</li>
  </ol>