In accordance with this answer System.out.write(int) , the least significant byte is written to the output in a system-dependent manner. In your case, the system decided to write it as a symbol.
1889 == 0000 0111 0110 0001
97 == 0000 0000 0110 0001
The rightmost octet is the same for both numbers. As @Cricket mentions, this is essentially the same as the module module in which you go in and 256.
source
share