How do we decide on the best implementation of hashCode() method for a collection (assuming that equals method has been overridden correctly) ?
hashCode()
As you specifically asked for collections, I'd like to add an aspect that the other answers haven't mentioned yet: A HashMap doesn't expect their keys to change their hashcode once they are added to the collection. Would defeat the whole purpose...