Java int zero prefix?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/565634/integer-with-leading-zeroes">Integer with leading zeroes</a>  </p>
</blockquote>



<p>Hi.</p>

<p>How does Java deal with bytes, ints, shorts and longs prefixed by zeroes, e.g.</p>

<pre><code>// Prints 8.
System.out.println(010);

// Prints 64.
System.out.println(0100);
</code></pre>

<p>So, <em>8^(n-1)</em>, I guess. But why?</p>

<p>Explanations are appreciated!</p>

<p><strong>EDIT:</strong>
So that's how it works. However, nobody knows why, it seems, and the other topic is dead.. Gn people. :)</p>
