Those two sentences don't actually contradict each other.Jos Roseboom wrote:. . . . one match would be enough to result in false . . . The anyMatch() method returns true because two of the three elements match . . .
I would say using a Lock object or a ReentrantLock object.. . . ReentrantLock is a class. . . . "Applying the ReentrantLock Class"[/i]
Those two sentences don't actually contradict each other.
Jos Roseboom wrote:page 200, 4rd sentence: The noneMatch() method also returns false because one matches. => 2 match. Although you could argue that one match would be enough to result in false, this would not be in line with sentence 2 "The anyMatch() method returns true because two of the three elements match"
Jos Roseboom wrote:page 326, just above figure 6.9: Notice the new module zoo.tickets.discount => the newly introduced module here is named zoo.tickets.etech
Jos Roseboom wrote:page 362, first sentence of the section "Submitting Task Collections": The last two methods listed in Table 7.2 that... => that should be table 7.1
Jos Roseboom wrote:page 375: section title "Applying a ReentrantLock Interface" ReentrantLock is a class. I guess this should either be something like "Applying a Lock Interface" or "Applying the ReentrantLock Class"
[OCP 21 book] | [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
Jos Roseboom wrote:page 469, question 11: the questions mentions execution deleteTree("/storage"). This should be deleteTree(new File("/storage")).
Jos Roseboom wrote:page 473, question 22: ...created on line 15 => ...created on line 17
Jos Roseboom wrote:page 491, the tip: On the exam, when you see Files.resolve() => Path.resolve()
Jos Roseboom wrote:page 511, Walking a Directory with walk(), first sentence: Steam API => Stream API
Jos Roseboom wrote:page 514, table 9.6: nest.gif => wings.gif
Jos Roseboom wrote:page 525, question 18: the questions asks about possible results. If the directory consists solely of .java files, all files are printed. B is a possible answer.
Jos Roseboom wrote:page 607, question 7: stmt.executeQuery(sql) is called on a PreparedStatement. Since sql contains a bind variable, a SQLException is thrown. This still makes the correct answer F, but since the explanation did not mention throwing an exception, I guess the code should be stmt.executeQuery()
Jos Roseboom wrote:page 608, question 12, answer says whitelist, but should be blacklist? : The code checks a condition. If the condition is true, an exception is thrown to block the protected code. This seems the recipe for Blacklist, not for Whitelist (which checks on a condition to be true and only if so runs the protected code)
[OCP 21 book] | [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
[OCP 21 book] | [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
Also, have a cow for the detailed and useful errata reports!
And good luck on the exam.
Congratulations Please search for “Wall of Fame” and add your name.
Jos Roseboom wrote:There is one finding you didn't judge: https://coderanch.com/t/734474/certification/Sybex-Java-OCP-Programmer-II . Do you agree with the reply of Thomasz there? I've had some Enthuware questions that try to trick me into the difference of autoboxing/unboxing.
[OCP 21 book] | [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
[OCP 21 book] | [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
[OCP 21 book] | [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
Dario Orescanin wrote:Jeanne,
I wanted to point out that there seem to be two "steam" errors in the book. One on page 511 in printed book, as you pointed out (chapter 9) and the second one in the index (at least in Kindle version) - I was referring to the second one.
Dario Orescanin wrote:JAlso, it is possible I found another small error. Kindle version once again. Figure 6.10. The service locator module is shown on the diagram to be "zoo.tours.reservation" (reservation is singular here), but we see "zoo.tours.reservations" (reservations is plural here) being referenced everywhere else in text and in code. So I would say that the diagram should have "zoo.tours.reservations" as the module name.
[OCP 21 book] | [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
Dario Orescanin wrote:One more possible errata. Table 9.3, Path methods:
This should be or some other variant. I've checked and I cannot find the overloaded method that has no parameters. If correct, this could also apply to page 756 (Kindle edition), with paragraph that starts with "Deriving a Path with relativize()".
[OCP 21 book] | [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
Joel Kaze wrote:page 480, on the method //URI to Path, using Paths factory method. After public static, It should be "Paths" instead of "Path". And the follow one should "toUri()" instead of "toURI"
Joel Kaze wrote:Page 491, We should have "public Path relativize(Path other)" instead of "public Path relativize()".
Joel Kaze wrote:page 466, Chapter 8, question 3: the value of name after the instance of Eagle created in the main() should be : Adeline instead of: Matt => Option A is correct.
Joel Kaze wrote:page 466, Chapter 8, question 3: the value of name after the instance of Eagle created in the main() should be : Adeline instead of: Matt => Option A is correct.
[OCP 21 book] | [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
Joel Kaze wrote:Page 491, We should have "public Path relativize(Path other)" instead of "public Path relativize()".
Joel Kaze wrote:page 480, on the method //URI to Path, using Paths factory method. After public static, It should be "Paths" instead of "Path".
Joel Kaze wrote: And the follow one should "toUri()" instead of "toURI"
[OCP 21 book] | [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
Joel Kaze wrote:
Joel Kaze wrote: Assessment Test, Question 1, Option A should also be correct one.
No. The question asks which CRUD operations are *not* allowed in an executeUpdate() statement. Delete SQL statements are allowed in executeUpdate().
[OCP 21 book] | [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
Joel Kaze wrote:page 166-167 , Chapter 3, question 8: Something ist wrong! It seem option D should be correect and option F ist incorrect at runtime.
[OCP 21 book] | [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
Javid Asgarov wrote:This is wrong, calling summaryStatistics on empty IntStream doesnt have a single method to return an Optional.
[OCP 21 book] | [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
Joel Kaze wrote:In Table 1.1 of Chapter 1 pages 21, it should be "yes" instead of "No" for final permitted modifiers of Anomymous class because I think that amonymous class are implicitly final. Hint: https://docs.oracle.com/javase/specs/jls/se6/html/expressions.html#15.9.5
[OCP 21 book] | [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
Jeanne Boyarsky wrote:
Javid Asgarov wrote:This is wrong, calling summaryStatistics on empty IntStream doesnt have a single method to return an Optional.
You are correct. I've added this to the errata. Thank you for noticing this. Have a cow!
getMin() and getMax() return MIN_VALUE and MAX_VALUE respectively.
Javid Asgarov wrote:
getMin() -> returns Integer.MAX_VALUE if no values present
getMax() -> returns Integer.MIN_VALUE if no values present
[OCP 21 book] | [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
Won't you be my neighbor? - Fred Rogers. tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|