可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

1. public class A&ensp


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.
参考答案
参考解析:
分类:SCJP程序员认证考试题库