Is byte, short, char automatically promoted in switch statement?
<p>Given the following code, is <strong><em>'a'</em></strong> (that is of type <strong>char</strong>) automatically promoted to int type in <strong>switch-case</strong> statement?</p>

<pre><code>void testSwitch(byte x) {
    switch(x) {
       case 'a':   // 1
       case 256:   // 2
       default:   //  3
       case 1:    //  4
    }
</code></pre>

<p>}</p>

<p>I couldn't find whether Java SE7 mentions about that..</p>

<p>Thanks in advance for clarification.</p>

<p>Regards,
Daniel</p>