Byte type is weird
<p>I need to send some bytes over UDP Protocol the start squence is 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF</p>

<p>When I define like this:</p>

<pre><code>byte [] begin = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF}; 
</code></pre>

<p>I get an error saying I need to cast those to byte type. Far as I know 0xFF doesn't exced the byte type so what is the problem ?</p>

<p>If i write this it works :</p>

<pre><code>byte [] begin = {(byte) 0xFF,(byte) 0xFF,(byte) 0xFF,(byte) 0xFF,(byte) 0xFF,(byte) 0xFF};
</code></pre>
