Question: 6. Where does the following program give a compilation error? interface A ( ) // Line 1 public class B implements A // Line
6. Where does the following program give a compilation error? interface A ( ) // Line 1 public class B implements A // Line 2 { public static void main(String[] args) } { } A test = new B(); // Line 3 A test2 = new A(); // Line 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
