京东2017实习生招聘试题 Java方向
public class Test {
static void Print(){
System.out.println("hello");
}
public static void main(String[] args){
((Test)null).Print();
}
}
个人参考答案: 编译通过 输出”hello”
京东2017实习生招聘试题 Java方向
public class Test {
static void Print(){
System.out.println("hello");
}
public static void main(String[] args){
((Test)null).Print();
}
}
个人参考答案: 编译通过 输出”hello”