Quantcast
Channel: User Mark - Stack Overflow
Viewing all articles
Browse latest Browse all 44

Comment by Mark on Java Array HashCode implementation

$
0
0
@Torque It only doesn't hurt if equals() is crappy in the same way. Normally a hashCode that is 'basically random' would be a serious problem, because if equals is true then hashCode must be same. A constant would be better than random.

Viewing all articles
Browse latest Browse all 44

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>