填空题 Java 题号 #144991 break语句最常见的用法是在switch语句中,通过break语句退出switch语句,使程序从整个switch 语句后面的 开始执行。 收起答案及解析 进入在线模考 参考答案 暂无 答案解析 第一条语句 你可能感兴趣的试题 1 请阅读下列程序代码,然后将程序的执行结果补充完整。 public class throwsException { static void Proc(int sel) throws ArithmeticException,ArrayIndexOutOfBoundsException{ System.out.println("In Situation"+sel); if(sel==0){ System.out.println("no Exception caught"); return; }else if(sel==1){ int iArray[]=new int[4]; iArray[1]=3; } } public static void main(String args[]){ try{ Proc(0); Proc(1); }catch(ArrayIndexOutOfBoundsException e){ System.out.println("Catch"+e); }finally{ System.out.println("in Proc finally"); } } 执行结果: In.Situation() no Exception caught in Proc finally 答案:In Situation 1 查看解析 → 2 当使用Thread t=new Thread(r)创建一个线程时,表达式:r instanceof Thread的值为 。 查看解析 → 3 下列选项中不属于结构化程序设计方法的是 A.自顶向下 B.逐步求精 C.模块化 D.可复用 查看解析 →