【单选题】听力原文:W: Morning, Mr. Park. M: Come here, Miss Li, I have something to talk to you. W: What's the problem, Mr. Park? M: We need to define a new strategy which must be flexible enough to take account of...
【单选题】 interface A { public void aMethod(); } 2. interface B { public void bMethod(); } 3. interface C extends A,B { public void cMethod(); } 4. class D implements B { 5. public void bMethod() { } 6. }...
A.
Compilation fails because of an error in line 3.
B.
Compilation fails because of an error in line 7.
C.
Compilation fails because of an error in line 9.
D.
If you define D e = new E(), then e.bMethod() invokes the version of bMethod()defined in Line 5.
E.
If you define D e = (D)(new E()),then e.bMethod() invokes the version of bMethod() defined in Line 5.
F.
If you define D e = (D)(new E()), then e.bMethod() invokes the version of bMethod() defined in Line 9.