Thursday, September 15, 2011

Quiz of the day | OCPJP (10)

2. interface A { }
3. interface B { }
4. abstract interface C extends A, B {
5. void c();
6. }
7. class D implements C {
8. public void c() { System.out.print("c "); }
9. }
10. class E implements C extends D {
11. public void c() { System.out.print("c x "); }
12. }
13. public class F extends D implements C, B { }

What is the result? (Choose all that apply.)

A. Compilation succeeds.
B. Compilation fails because of error(s) in C.
C. Compilation fails because of error(s) in D.
D. Compilation fails because of error(s) in E.
E. Compilation fails because of error(s) in F.


DOWNLOAD the answer

0 comments: