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 B implements D {}

C.
class E extends A {}

D.
interface E extends C, D {}

E.
class E extends A, B {}

F.
class E implements C, D {}



Leave a Reply 0

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