可学答题网 > 问答 > java工程师信产部认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

分析下列代码:  Class A{  Pub


分析下列代码:  Class A{  Public static void main(String[] args){  method(); }  static void method(){  try{  System.out.println("Hello"); }finally{  System.out.println("good-bye"); } } }  编译运行后,输出结果是()。 

  • A"Hello"
  • B"good-bye"
  • C"Hello""god-bye"
  • D代码不能编译
参考答案
参考解析:
分类:java工程师信产部认证考试题库
相关推荐

1、分析下列Java代码:   class A&

分析下列Java代码:  class A { public static void main(String[] args)    {  method();&...

2、若a=5,b=3,c=4,逻辑表达式!(a+b)&;&;!c的值

若a=5,b=3,c=4,逻辑表达式!(a+b)&;&;!c的值为()A0B-1C1D2

3、You create a class&ens

You create a class library that contains the class hierarchy defined in the following code&ensp...

4、现有int a,*b;,b=&a;,则下列运算错误的是

现有int a,*b;,b=&a;,则下列运算错误的是A*&aB&*aC*&bD&*b

5、考虑下列Java代码:  class A {

考虑下列Java代码: class A { public static void main(String[] args) {   try { System.out.prin...

6、You create a class&ens

You create a class library that is used by applications in three departments of your compa...