多做题,通过考试没问题!

Oracle认证考试

睦霖题库>其他计算机考试>Oracle认证考试

Click the Exhibit button.   Given this code from Class B:   25. A a1 = new A();   26. A a2 = new A();   27. A a3 = new A();   28. System.out.println(A.getInstanceCount());   What is the result?()

  • A、 Compilation of class A fails.
  • B、 Line 28 prints the value 3 to System.out.
  • C、 Line 28 prints the value 1 to System.out.
  • D、 Compilation fails because of an error on line 28.
  • E、 A runtime error occurs when line 25 executes.
正确答案:A
答案解析:
进入题库查看解析

微信扫一扫手机做题