public class test {public static void main(String[] args) throws Exception {Temp temp = new Temp();temp.test("1");temp.test(null);}}public class Temp {public void test(Object a){System.out.println("test Object");}public void test(String a){System.out.println("test string");}}為什么輸出結(jié)果為test Objecttest Object
添加回答
舉報(bào)
0/150
提交
取消