OCPJSE8 97%,
Authorized Oracle Instructor,
OCAJSE8 Book: [url=http://igor.host/index.php/nailing-1z0-808/[/url]
Igor Soudakevitch wrote:page 3:
1) missing close paren after System.out.println(cat.id);
Igor Soudakevitch wrote:
2) imports; Lynx and Mouse can't see BigCat right now...
Igor Soudakevitch wrote:
page 11:
"Since only the Animal superclass has a careFor method, it executes." -> why 'only'? Lion has it, too.
Igor Soudakevitch wrote:
page 13:
"All classes in Java inherit from java.lang.Object, either directly or indirectly, which means that all classes inherit any methods defined in Object." -> Javadoc uses 'the' rather than 'any'; after all, Object does declare a single uninheritable method, namely private static native void registerNatives().
Igor Soudakevitch wrote:
page 29:
"four is not effectively final. Even though the assignment happens after the inner class, it is not allowed." -> In this particular example the Inner class doesn't reference the var four so the code compiles as written…
Igor Soudakevitch wrote:
page 35:
1) "Local inner classes are … not allowed to have static members" -> 'except for static final fields' (just like on page 28 as already reported in Errata)
Igor Soudakevitch wrote:
2) "must not declare any new or broader exceptions" -> 'checked'
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
OCPJSE8 97%,
Authorized Oracle Instructor,
OCAJSE8 Book: [url=http://igor.host/index.php/nailing-1z0-808/[/url]
Igor Soudakevitch wrote:
page 12, smack in the middle:
"Java ignores whitespace, which means that lines 5 and 6 could be merged into one":
Line 6 didn't specify args so boolean b should probably be removed at this point as we are not discussing unintentional overloading yet.
Agreed. Added to errata.
Igor Soudakevitch wrote:
page 25, the second-to-last bullet point:
"Cannot declare static fields or methods" -> + static initializers + member interfaces (and classes, too?); compile-time constants are allowed, though.
page 28, the second bullet point:
Same static-related clarifications apply to the local inner classes, as well.
page 35, the "Identify and use nested classes" block:
Saying just 'static members' without further qualification again leaves out constants not to mention static initializers. What's more, this restriction is mentioned for local inner classes only; the wording should probably be extended somehow to cover member inner classes as well…
True. Beyond the scope of the point we are making there.
Igor Soudakevitch wrote:
page 665, Index:
scheduleAtFixedDelay -> scheduleWithFixedDelay
Recorded as an errata against page 346. The index is auto generate from the text.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2