1
JavaIntermediate#object#hashmap
If a class doesn't override equals(), it inherits Object's implementation, which behaves identically to ==, comparing references rather than logical content.
class Point { int x, y; }
Point p1 = new Point();
Point p2 = new Point();
p1.equals(p2); // false, same as p1 == p2, since equals() isn't overridden