Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

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

Related Hot Questions

Government Jobs Opening