Ask a Question
Advertise on boostr.in
Organizational Research By
Surprising Reserch Topic
why doesnt java support unsigned ints
why doesnt java support unsigned ints Â using -'java,language-design,unsigned,integer'
Why doesn't Java include support for unsigned integers? Â
It seems to me to be an odd omission, given that they allow one to write code that is less likely to produce overflows on unexpectedly large input. Â
Furthermore, using unsigned integers can be a form of self-documentation, since they indicate that the value which the unsigned int was intended to hold is never supposed to be negative. Â
Lastly, in some cases, unsigned integers can be more efficient for certain operations, such as division. Â
What's the downside to including these?
Â Â Â Â
Sep 30, 2015
to add a comment.
Related Hot Questions
Government Jobs Opening