Hi,
I haven't seen this in errata, and apologies if it's a duplicate post or my misunderstanding.
One of the questions on mock exam 3 has a couple of errors.
The question about public enum Suit and Color (enum within enum question)...
1. Option D states that "Color.Black should be replaced by BLACK on line 2". It should be Color.BLACK in the option.
2. Option E states that "Color enum on line 4 should be declared private". It is already private in the provided example code.
I think that Option E typo could, potentially, affect the answer choice. Either the access modifier in the code or in the option should be changed, to make option E a viable option.
OK, I just "got" option E. It means whether private modifier is necessary or not, not whether it has to be changed. So forget the second error. First typo still remains, and doesn't affect the answer.
Elana Abelev wrote:I haven't seen this in errata, and apologies if it's a duplicate post or my misunderstanding.
It is always useful to at least mention which study guide this errata report is about. And preferrably you add it into the subject (e.g. between parantheses)
Elana Abelev wrote:I haven't seen this in errata, and apologies if it's a duplicate post or my misunderstanding.
It is always useful to at least mention which study guide this errata report is about. And preferrably you add it into the subject (e.g. between parantheses)
You are right! This is for the Sybex Wiley Oracle OCPJP 1Z0-809 online mock exam.
I haven't figured out how to modify the title of the post, otherwise I'd do that. Thanks!