1.

What will be the output of the program?

public class A
{ void A() /* Line 3 */ { System.out.println("Class A"); } public static void main(String[] args) { new A(); } }

A. Class A
B. Compilation fails.
C. An exception is thrown at line 3.
D. The code executes with no output.
Answer» E.


Discussion

No Comment Found

Related MCQs