The only 8-bit integer data type in Java is byte , so you should use it. Unfortunately, it is signed, so uint8_t values โโgreater than 127 will be considered negative when converting to Java byte . This is not a problem because the stored bits are the same.
source share