This content has been marked as final. Show 2 replies
A byte is only 8 bits and it's signed as well so 1 bit is reserved for the sign.
As a consequence a byte in Java has the numerical range of -128 to 127.
Just for the record, as far as I know a byte could never have the values -785314906 or 805139163 in any language unless that language defines a byte to be something other than a byte.
Try the following to convert your "byteCode"s:
System.out.println((char)(0xff & byteCode));