试题详情
- 单项选择题 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
- C
关注下方微信公众号,在线模考后查看
热门试题