how does java treat octal and decimal number : <p>I am not able to understand how java stores the value specified as octal and hexadecimal value.i need an explanation for the output of the following code snippet.</p>

<pre><code>public class Test {
    public static void main ( String args[] )
    {

        int a = 10 , b = 017 , c = 0X3A ; 
        System.out.println( a + " " + b + " " + c) ; 
    } 
}
</code></pre>

<p>The output produced by this code is </p>

<pre><code>10 15 58
</code></pre>

<p>a detailed explanation on the output would be of great help.Thanks in advance</p>
