Question: Given 1. interface TestA String toString0,) 2. public class Test t 3. public static void main(StringlI args) { 4. System.out println(new TestA0 5. public String

Given 1. interface TestA String toString0,) 2. public class Test t 3. public static void main(StringlI args) { 4. System.out println(new TestA0 5. public String toString0 { return "test", ) 6. 7 What is the result? A. test B. null C. An exception is thrown at runtime. D. Compilation fails because of an error in line 1 E. Compilation fails because of an error in line 4. F. Compilation fails because of an error in line 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
