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

Java认证考试

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

1. public class A {  2. void A() {  3. System.out.println(“Class A”);  4. }  5. public static void main(String[] args) {  6. new A();  7. }  8. }  What is the result?()  

  • A、 Class A
  • B、 Compilation fails.
  • C、 An exception is thrown at line 2.
  • D、 An exception is thrown at line 6.
  • E、 The code executes with no output.
正确答案:E
答案解析:
进入题库查看解析

微信扫一扫手机做题