可学答题网 > 问答 > Java认证考试综合练习题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

class Flow {  public&e


class Flow {  public static void main(String [] args) {  try {  System.out.print("before ");  doRiskyThing();  System.out.print("after ");  } catch (Exception fe) {  System.out.print("catch ");  }  System.out.println("done ");  }   public static void doRiskyThing() throws Exception {  // this code returns unless it throws an Exception  } }  可能会产生下面哪两项结果?() 

  • Abefore
  • Bbefore catch
  • Cbefore after done
  • Dbefore catch done
参考答案
参考解析:
分类:Java认证考试综合练习题库
相关推荐

1、class java {  public&e

class java { public static void main(String [] java) {  for (int Java = 1; Java&e...

2、public class TestA{ &e

public class TestA{  public void methodA() throws IOException{  //……  }  }  publi...

3、public class Plant {&e

public class Plant { private String name; public Plant(String name) { this.name = name; }&e...

4、1. public class Test&e

1. public class Test { 2. int x= 12; 3. public void method(int x) { 4. x+=x;&ensp...

5、public class Starter e

public class Starter extends Thread { private int x= 2; public static void main(String[] args...

6、public class Delta {&e

public class Delta { static boolean foo(char c) { System.out.print(c); return true; } public&e...