Declaring an unsigned int in Java

Is there a way to declare an unsigned int in Java?

Or the question may be framed as this as well:
What is the Java equivalent of unsigned?

Just to tell you the context I was looking at Java’s implementation of String.hashcode(). I wanted to test the possibility of collision if the integer were 32 unsigned int.

10 Answers
10

Leave a Comment