Which statement is true about the classes and interfaces in the exhibit?

Refer to the Exhibit. Which statement is true about the classes and interfaces in the exhibit?

Refer to the Exhibit. Which statement is true about the classes and interfaces in the exhibit?

A.
Compilation will succeed for all classes and interfaces.

B.
Compilation of class C will fail because of an error in line 2.

C.
Compilation of class C will fail because of an error in line 6.

D.
Compilation of class AImpl will fail because of an error in line 2.



Leave a Reply 1

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


Matti

Matti

C is correct, By the override method, return type can just widen (e.g Object –> String), not reverse (String –> Object in this case)