Object Methods3:29 with Ben Deitch
In this video we'll explore the methods of the Object class.
The code example at
1:35 in the video shows:
mary.hashCode() != frank.hashCode(); // Returns false
Since both objects return a different hashcode, they are not equal to each other, so the comparison should return
true. It's true that Mary's hashcode is not equal to (
!=) Frank's hashcode.
You need to sign up for Treehouse in order to download course files.Sign up