(no title)
hashmash | 7 months ago
Unsigned integer types are only really necessary when dealing with low-level bit manipulation, but most programs don't do this. The lack of unsigned integers makes low-level stuff a bit more difficult, but it makes the language as a whole much easier. It's a good tradeoff.
TuxSH|7 months ago
Mandate 2's complement be used.
> Unsigned integer types are only really necessary when dealing with low-level bit manipulation
They also give one more bit of precision, useful when dealing with 32-bit integers (or below)
binarymax|7 months ago
hashmash|7 months ago
Keeping unsigned integer types out of the language makes things much simpler, and keeping things simple was an original design goal of Java.
pron|7 months ago