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.