1
Answer

Unsigned Keyword

Jessica Stephen

Jessica Stephen

12y
1.5k
1
Why Java does not support unsigned keyword?
Answers (1)
0
Vulpes

Vulpes

NA 98.3k 1.5m 12y
It's a question which you really need to address to Java's designers.

The only answer I can offer is that Java (at least originally) was intended to be a simple language and they deliberately cut out a lot of stuff that's in C/C++ including unsigned types.

They've subsequently added some stuff back (such as enums) though not, unfortunately, unsigned types which can make life difficult if you need to interoperate with native code.

However, if experience of C# is anything to go by, unsigned types are not used much outside of interop anyway, so it's not as serious an omission as you might think.