why does the following give the output..String version?
public class Test1 {
public void amethod(Object o){
System.out.println("Object version");}
public void amethod(
String s){
System.out.println("String version");}
public static void main (String args[] ) {
new Test1().amethod(null);
}
}
Tejal