Let\'s take a look at this code:
public class ParentClass { public void foo(Object o) { System.out.println(\"Parent\"); } } public class Sub
Strings are objects in java, as said its not overridden but as you pass a string it will run the first available method that can the the argument, in this case it is the super-class's method.