Hi all, I have a doubt regarding a method call. The following code is calling method which is having a String argument. Whereas I thought that which execution ambiguity will arise. Can anyone please explain this?
While passing null, it gets associated with the argument with the child in the lowest hierarchy level... In this case String extends from Object...
A similar sample code... Note that when you uncomment the method with Child4 argument, that does not extend the Child3 class, the method call using null gives error.