[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
Michael Goshey wrote:Possible errata: Chapter 9, page 512, first paragraph after the heading "Bounding Generic Types": the second sentence reads "Bounded wildcards solve this by restricting what types can be used in a wildcard (emphasis mine)." It seems like that last word should be generic.
[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
Michael Goshey wrote:Chapter 10, page 564, bottom of page under the bold heading "getSum()": the explanation mentions DoubleSummaryStream, IntSummaryStream and LongSummaryStream, which presumably should be DoubleSummaryStatistics, IntSummaryStatistics and LongSummaryStatistics respectively.
Thanks for the comment. We meant the type of the stream the summary statistics object came from. So it's not quite an errata. I do see how it could be clearer though so I put it on our private list of things to consider for the next version of the book.
[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:Now that a second person said it, I lean more towards changing it!
Asiel Leal Celdeiro wrote:Hi,
I'm reading OCP Oracle Certified Professional Java 17 SE Developer Study Guide, and I'm struggling to understand the following:
On page 399 (Chapter 7 Beyond Classes > Understanding Polymorphism > Overriding vs. Hiding Members), in the last paragraph, is says "[...] it prints 3 instead of 8 [...]", but it actually prints 8 because the object reference is `CrestedPenguin`, whose static method `getHeight` returns 8. FWIW, I tested it in jshell (java 17.0.2)
So, I think, either the code snippet should be `new Penguin().printInfo();` or change text to "[...] it prints 8 instead of 3 [...]", but I guess this would defeat the purpose of the example, wouldn't it?
Does this make sense, or am I missing something here?
See attached image:
Asiel Leal Celdeiro wrote:Ok, FWIW, it does print 3 if I run this code as an actual Java class.
Kam M'Intosh-'i'i wrote:Where is the complete (to date) errata presented? How can I access it? I love the book and its presentation. But, after seeing a couple of errors, I have become apprehensive about the book's contents. A complete errata would boost my confidence in it.
Jeanne Boyarsky wrote:
Thanks for the comment. We meant the type of the stream the summary statistics object came from. So it's not quite an errata. I do see how it could be clearer though so I put it on our private list of things to consider for the next version of the book.
Now that a second person said it, I lean more towards changing it!
Mike Simmons wrote:
Jeanne Boyarsky wrote:
Thanks for the comment. We meant the type of the stream the summary statistics object came from. So it's not quite an errata. I do see how it could be clearer though so I put it on our private list of things to consider for the next version of the book.
Now that a second person said it, I lean more towards changing it!
Hi, Jeanne! I'm not sure I follow the first explanation - DoubleSummaryStream isn't a thing. You can use a DoubleStream to get DoubleSummaryStatistics. Then again, I don't know exactly how this appeared in the book - maybe it made more sense there.
[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
Michael Goshey wrote:Question on Chapter 14 I/O: This is one of those "...this is probably a really dumb question" moments, but I'm hoping you can clear up something that's been puzzling me. I'm just wrapping up your excellent Chapter on IO. Copious coverage is given to building blocks like the creation of File (IO) and Path (NIO.2) objects, directory creation methods for both I/O and NIO.2 and a wealth of necessary and related classes and methods, but I've not seen any mention of the actual API mechanisms for simply creating new empty files on disk. In other words, I can't seem to find any references in the chapter to either the java.io.File createNewFile() instance method, nor the corresponding NIO.2 Files.createFile() static method, and I'm sort of curious if I just missed this somehow or if there's some (embarrassingly) obvious reason why it isn't included- for example- in table 14.4 (page 793-794) which does include mkdir() and createDirectory()? Thanks for your time and for greatly accelerating my certification prep!
[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
Michael Goshey wrote:In Chapter 15 "JDBC", page 889, under the heading "Passing an IN Parameter," the second sentence reads: "The read_names_by_letter() stored procedure takes a parameter for the prefix or first letter of the stored procedure." It seems like the intention of the sentence makes more sense if revised to: "The read_names_by_letter() stored procedure takes a parameter for the prefix or first letter of the name column."
[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
--
Caleb
(https://calebjosue.gigalixirapp.com/)
[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
--
Caleb
(https://calebjosue.gigalixirapp.com/)
LOOK! OVER THERE! (yoink) your tiny ad is now my tiny ad.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|