title: Java problem-Whats the reason behind and what will be probable output
body: <p>1.) </p>
  
  <pre><code>long milli=24*60*60*1000;
  long micro=24*60*60*1000*1000;
  long result=micro/milli;
  </code></pre>
  
  <p>The result should be <code>1000</code> but it's not.</p>
  
  <p>Please can you tell me the output and explain it?</p>
  
  <p>2)</p>
  
  <pre><code>int i=0;
  for(a=0;a&lt;=integer.MAX_VAL;a++)
  {
      i++;
  }
  
  S.O.P(i);
  </code></pre>
  
  <p>Normally it went to infine loop why because there is max value it should come out of loop. At what conditions it will executed sucessfully and what will be excepted value. .....Anyone can tell me about VM...  handing of nummbers in JAVA</p>