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 

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!