Java byte is treated as the minimum number, so its value range is defined as-128~ 127. It takes much less time to count byte than to represent the basic storage unit.
For example, when reading a double-byte character from a stream, we first receive two bytes. In order to convert byte into an appropriate form, it is necessary to compare byte values, such as judging whether the character set is within a certain coding range.
Extended data:
Java looks a lot like C++, but in order to make the language small and familiar, designers have removed many available features in C++ language, which are rarely used by ordinary programmers.
For example, Java does not support go to statements, but provides break and continue statements and exception handling. Java also eliminates the operator overloading and multiple inheritance characteristics of C++, and does not use the main file, thus eliminating the preprocessor.
Baidu encyclopedia -Java