OCJP Question:1

Que:1
 Explaination:                                                                                 

An instance method in a subclass with the same signature (name, plus the number and the type of its parameters) and return type as an instance method in the superclass overrides the superclass's method.Here class B execute() method have 'String' return type where as overriding method class A execute() method have 'Object' return type and this is also not follow Covariant Returns(K&B page 127) phenomenon so  answer is C



                                         * For OCJP Dumps related any doubts N query once Visit our
                                                          FrequentlyAskedQuestion Section.