title: An example of a hashCode() comparison returning true while a equals() method returns false?
body: <p>I understand it's possible, I just don't understand how. From what I can tell, if a class overrides the hashCode() and equals() methods to consider specified data members, references that instantiate that class will be given the same hash value as long as the specified data members they hold are the same. I have a feeling this is where I'm wrong, can anyone cite me an example of a hashCode() comparison returning true while a equals() method returns false on the same set of references? I apologize in advance if this is a repeat question, tried looking for a similar question to no avail.</p>