logoalt Hacker News

pjmlpyesterday at 8:55 PM1 replyview on HN

Java doesn't have unsigned as primitive types, because James Gosling did a series of interviews at Sun among "expert" C devs, and all got the C language rules for unsigned arithmetic wrong.

Yes I miss them in Java as primitives, however there are utility methods for unsigned arithmetic, that get it right.


Replies

layer8yesterday at 9:58 PM

Java has char as an unsigned 16-bit integer type. They should have made byte unsigned as well.