Byte array actual length
<p>What is the actual length of a byte array? For example:</p>

<pre><code>int x = 123 equals to byte[] b = 0111 1011
</code></pre>

<p>Now if I want to figure out the length of said integer I would use <code>b.length</code>, but from what I gather, length can be only multiples of 8 because every byte represents a mandatory number. Is that the case with byte array or am I missing something?</p>