I see that the comparison operator (otherwise method) (==) is defined in the Any class in Scala as final (similarly != operator as well). Any is the universal super class in Scala.
final def ==(that: Any): Boolean
This means that the method (==) can not be overridden in any of the sub classes. IF this is the case, how when we compare two integers / strings, the result is always correct ?
I tried in Scala's REPL.
E.g: 1==1 returns true.