Hey,
When we try to compare two instances with the == operator, Scala calls the object’s equals() method.
We use it to check instance equality. However, in Java, we use it to check reference equality. This tells us whether two references point to the same object.