Suppose I have the following java method
protected void onEvent(Object obj) {
}
The Scala compiler accepts
protected override def onEvent(event: Any)
and
protected override def onEvent(event: Object)
Is there any difference between the two?
There is an article on scala-lang with great diagram (I even put it on the wall). And also need to be mentioned: