第五章 北邮java.docxVIP

  • 20
  • 0
  • 约 20页
  • 2017-06-24 发布于湖北
  • 举报
作业一 一、单项选择题(共10道小题,共100.0分) 设有如下程序 public class Try2 { ?????? public static void main(String[] args) { ????????????? Try2 obj = new Try2(); ????????????? obj.test(); ?????? } ?????? ?????? void oneMethod() { ????????????? int a [] = {1, 2, 3}; ????????????? System.out.println(a[3]); ?????? } ?????? ?????? public void test() { ????????????? try { ???????????????????? oneMethod( ); ???????????????????? System.out.println(condition 1); ????????????? } ????????????? catch (ArrayIndexOutOfBoundsException e) { ???????????????????? System.out.println(condition 2); ????????????? } ????????????? ca

文档评论(0)

1亿VIP精品文档

相关文档