Email address:
Password:
SCJP/OCPJP 1.6 certification
Practice Exams and Training
SCJP Online Training » Discussions

Problem with first question answer choices for the Eligibility Quize for Java OCPJP Training Course

So I am evaluating the quality of the site content considering how much to invest in it.


I was looking at the Eligibility Quiz for Java OCPJP Training Course:


https://examlab.org/quiz/do/ocpjp-training-eligibility-test


Right away on the first question it has me questioning both my knowledge and the proofreading / checking done on examlab.org:


1)Which one of the following statements is true about overriding a method?

A. The sub class method cannot be final

B. The super class method cannot be final

C. If the super class method is final, the sub class method must be final too.

D. The sub class method cannot be public.

E. The super class method cannot be public

F. If the super class method is public, the sub class method must be public too


The quiz question statement and the UI both ensure there is expected to be only one correct answer.

A, C, D, E are all wrong just looking at them, so that leaves B. and F. Presumably one of the two is FALSE, right?


B. The super class method cannot be final -- well, this by definition is true! The whole point of making a method final is that it cannot be overridden.

So hopefully F. is false, let's look...

F. If the super class method is public, the sub class method must be public too

Wait, this is a basic rule of overriding methods as well!! You can not reduce the visibility of any overridden method (compared to it's superclass method) while overriding!


If we violate B, we get:

Cannot override the final method from SuperClass


If we violate F, we get:

Cannot reduce the visibility of the inherited method from SuperClass


Am I missing something? It may be that the Quiz is less proofread and debugged than the rest of the site, but either I am confused or the very first question some might sample from you contains no correct answer choice (i.e. there are two equally correct answers and only one may be selected).


I most definitely appreciate tricky questions, but not impossible ones!


Let me know,

Jesse

ExamLab © 2008 - 2021