why 09 is a too large integer number?
<p>They think it is:</p>

<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>
But if you check <a href="http://stackoverflow.com/questions/565634/integer-with-leading-zeroes">Integer with leading zeroes</a> then you will find that the question is asked if before the launch of jdk7 and therefore it has lower researching efforts. But in jdk7 there is some change and addition to the integers. Here are the answers which are up to date covering jdk7.</p>

<p>I've a code:</p>

<pre><code>class Test{
    public static void main(String[] args){
        int x=09;
        System.out.println(x);
    }
}
</code></pre>

<p>On compilation it gives an error: integer number too large : 09</p>

<p>Why it do so?</p>

<p>Again, if I change the code to:</p>

<pre><code>class Test{
    public static void main(String[] args){
        int x=012;
        System.out.println(x);
    }
}
</code></pre>

<p>Now the output is 10</p>

<p>Why it give the output 10 instead of 12?</p>
