What happens when you compile and run the following code?
public class
Test {
public void myMethod(Object o)
{
system.out.println("My Object");
}
public void myMethod(
String s)
{
system.out.println("My String");
}
public static void main(String args[])
{
Test t = new Test();
t.myMethod(null);
}
}
// Why does it print "My String"??
// Is it because it is the more specific method in
// the hierachy tree??