试题详情
单项选择题 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
  • 关注下方微信公众号,在线模考后查看

热门试题