class cls{
public void f1(Object o){
System.out.println("Object");
}
public void f1(
String o){
System.out.println("String");
}
}
public class Main {
public static void main(String[] args){
new cls().f1(null);
}
}
Why is the output fo the above program "String"? An "Object" type is as good or as bad as a "String" type for "null".