Bytes in Java?
<p>Thanks for all above answers but didn't really help me well just to give an idea what exactlty i wants to do: I am coding for some sort of packet which has different fields with differnt length in bytes</p>

<p>so field1 is 2 byte long field2 is 3 bytes long field3 is 6 bytes long and when i addup these fields, i should be getting 11 bytes in length...</p>

<p>But i have no idea how can i declare something with this byte long...</p>

<p>Please help...thanks in advance</p>
