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?
    

asked Sep 30, 2015 by akasati02
0 votes
3 views



Related Hot Questions

11 Answers

0 votes
NULL
answered Sep 30, 2015 by yashwantpinge
0 votes
NULL
answered Sep 30, 2015 by sachin valanju
0 votes
NULL
answered Sep 30, 2015 by suyesh.lokhande
0 votes
NULL
answered Sep 30, 2015 by shegokar.anjeet
0 votes
NULL
answered Sep 30, 2015 by ajit.chavhan
0 votes
NULL
answered Sep 30, 2015 by thiru
0 votes
NULL
answered Sep 30, 2015 by akhilesh
0 votes
NULL
answered Sep 30, 2015 by deepak07.s
0 votes
NULL
answered Sep 30, 2015 by rajesh
0 votes
NULL
answered Sep 30, 2015 by dahiyabecomp
0 votes
NULL
answered Sep 30, 2015 by param.oncemore

...