欢迎来到牛牛题库网 牛牛题库官网
logo
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

public static void main(String[] args) { 
try { 
args=null; 
args[0] = “test”; 
System.out.println(args[0]); 
} catch (Exception ex) { 
System.out.println(”Exception”); 
} catch (NullPointerException npe) { 
System.out.println(”NullPointerException”); 
} 
} 
What is the result?() 

A. test
B. Exception
C. Compilation fails.
D. NullPointerException

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题