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.

时间:2022-09-28 22:18:43 所属题库:SCJP程序员认证考试题库

相似题目