The Object class defines the default implementation for this method.. By default, the equals () method returns false if the two objects aren’t the same instance… … Now the equals() method will return true if two instances of Payment have the same currency and value.