O'Reilly logo
  • saeed Abooleet thinks this is interesting:

scala> val s4: String = null s4: String = null scala> s3 == s4 res2: Boolean = false scala> s4 == s3 res3: Boolean = false

From

Cover of Scala Cookbook

Note

compairng by using ==