Ques: Which method will be called and y?
- by Gaurav
Ques: Which method will be called and y?
public class Test {
public void method(Object o){
System.out.println("object");
}
public void method(String s) {
System.out.println("String");
}
public void method() {
System.out.println("blank");
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Test test=new Test();
test.method(null);
}
}