Which, inserted at line 5, results in a compilation failure?

Given:
1. abstract class A {}
2. class B {}
3. interface C {}
4. interface D {}
5. // insert code here
Which, inserted at line 5, results in a compilation failure?

Given:
1. abstract class A {}
2. class B {}
3. interface C {}
4. interface D {}
5. // insert code here
Which, inserted at line 5, results in a compilation failure?

A.
class E implements C {}

B.
class E extends A, B {}

C.
class E extends A {}

D.
class E implements C, D {}

E.
interface E extends C, D {}

F.
class E extends B implements D {}



Leave a Reply 0

Your email address will not be published. Required fields are marked *