认证高级PHP讲师
Take byte as an example. The range specified by Java is -128~127, but if you think of it as an unsigned number, the range is 0~255. Obviously -128 < 127, but when compared as an unsigned number, -128 (will be regarded as 128) is greater than 127.
Take byte as an example. The range specified by Java is -128~127, but if you think of it as an unsigned number, the range is 0~255.
Obviously -128 < 127, but when compared as an unsigned number, -128 (will be regarded as 128) is greater than 127.