I've just finished studying from the guide wrote by Jeanne and Scott (I'll be taking the exam soon!).
While going through the last sections of the book, I found another two small errors, so here we go:
The first one is a really small issue really. This is located at page 518 (review question answers, chapter 9).
While reading the explanation for question 6
, I've noticed the following:
D, E. Lines 1 and 2 are declared correctly, with the implicit modifier abstract being applied to the interface and the implicit modifiers public, static, and final being applied to the interface variable, making options B and C incorrect. Option D is correct, as an abstract method cannot include a body. Option E is also correct because the wrong keyword is used. A class implements an interface; it does extend it. Option F is incorrect as the implementation of eatGrass() in IsAPlant does not have the same signature; therefore, it is an overload, not an override.
The highlighted part should be:
A class implements an interface; it does NOT extend it.
This one's in the last section of the book, page 481. The issue is in table 11.5, last line, second column.
I hope I am right for this one, but as far as I know the --show-module-resolution displays debugging information at startup (Java docs as additional reference
). The example in the table does not include the -m option, specifying which module (class from the module actually) to run. So instead of:
java --show-module-resolution -p moduleFolderName -d moduleName
java --show-module-resolution --module-path moduleFolderName --describe-module moduleName
...it should be:
java --show-module-resolution -p moduleFolderName -d moduleName -m moduleName/package.name.ClassName
java --show-module-resolution --module-path moduleFolderName --describe-module moduleName -m moduleName/package.name.ClassName
Please correct me if I am wrong. I also see the -d option here. Does it work with --show-module-resolution? I must admit I am a bit confused though.
Very good book by the way, well structured and it helped me cover the material easily. I'll be going over it again and I'll be taking as many mock exams as possible, then...yeah - I think I'll be ready for the exam!