You should be careful about saying hashCode() returns a unique code in general. There should be very rare occurrences of it ever getting a repeated code for different values, but there are collisions none-the-less in some objects of greater than an int's size that have to accounted for.
1 comment:
You should be careful about saying hashCode() returns a unique code in general. There should be very rare occurrences of it ever getting a repeated code for different values, but there are collisions none-the-less in some objects of greater than an int's size that have to accounted for.
Post a Comment