Why does Java's hashCode() in String use 31 as a multiplier?
According to Joshua Bloch’s Effective Java (a book that can’t be recommended enough, and which I bought thanks to continual mentions on stackoverflow):
The value 31 was chosen because it is an odd...
Continue reading...