Hi, folks, here is a question from JQuest:
public class TestNull {
public void method(Object o) {
System.out.println("Object Version");
}
public void method(
String s) {
System.out.println("String Version");
}
public static void main(String args[]) {
Test test = new Test();
test.method(null);
}
}
The answer gives "String version". However, when i compile, it says method(null) can not be found in test.
what do you think?