Given:
1. class c1 { } 2. class c2 { } 3. interface i1 { } 4. interface i2 { } 5. class A extends c2 implements i1 { } 6. class B implements i1 implements i2 { } 7. class C implements c1 { } 8. class D extends c1, implements i2 { } 9. class E extends i1, i2 { } 10. class F implements i1, i2 { }
What is the result? (Choose all that apply.)
B, C, D, and E are correct, as those classes will NOT compile.
For class B, it's okay to implement two interfaces, but the syntax is incorrect.
For class C, classes extend other classes, they don't implement them.
For class D, it's okay to extend AND implement, but the syntax is wrong.
For class E, it's legal to implement more than one interface, but interfaces are implemented, not extended.
A and F are declared correctly, and option G is incorrect based on the above.