Scala Class vs Java Class