Overloading method with parent type and child type argument and passing null while calling. Why method with childtype argument is getting called

后端 未结 0 1296
死守一世寂寞
死守一世寂寞 2020-12-05 16:59

public class Simple{

public static void main(String args[]){

method(null);

}

public static void method(Object o) {

System.out.println(&quo

相关标签:
回答
  • 消灭零回复
提交回复
热议问题