Hi ranchers !!!
I have the following code:
public class
SCJP {
public static void main(
String[] args) {
method(null);
}
public static void method(String obj) {
System.out.println("String");
public static void method(Object obj) {
System.out.println("Object");
}
}
Can someone explain me why the result will be "String" and not "Object" ?
Thanks.!!!
[ August 12, 2007: Message edited by: Collins Mbianda ]