• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Questions/errata for Sybex OCP 17 Study Guide

 
Greenhorn
Posts: 14
1
  • 1
  • Number of slices to send:
    Optional 'thank-you' note:
This may not be considered "errata", but I wonder if I'm the only one that finds the first row from Table 4.5 on page 187 ("Equality vs. comparison vs. mismatch") a bit ambiguous/confusing when it indicates that equals() returns true "When arrays contain the same data", since I believe the statement is only accurate when the references point to the same array object.
 
author & internet detective
Posts: 41911
909
  • 1
  • Number of slices to send:
    Optional 'thank-you' note:
While you are correct, the table is about static methods on the Arrays class. See the last two lines in the following example:

Your example uses the equals() method defined on Object which as you've noted uses object equality. That's why Arrays.equals() exists. So you can compare arrays logically.

 
Michael Goshey
Greenhorn
Posts: 14
1
  • Number of slices to send:
    Optional 'thank-you' note:
Thanks for clarifying what I missed!
 
Michael Goshey
Greenhorn
Posts: 14
1
  • Number of slices to send:
    Optional 'thank-you' note:
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.
 
Jeanne Boyarsky
author & internet detective
Posts: 41911
909
  • Number of slices to send:
    Optional 'thank-you' note:

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.


Hmm. I think that was trying to say the wildcard restricts the generic so either word would work, but the emphasis would be different.

I noted it on our private lists to consider whether it should be reworded next time. Thanks!
 
Michael Goshey
Greenhorn
Posts: 14
1
  • Number of slices to send:
    Optional 'thank-you' note:
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.
 
Jeanne Boyarsky
author & internet detective
Posts: 41911
909
  • Number of slices to send:
    Optional 'thank-you' note:

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.


I agree that should be changed next time. It was pointed out here

My response was

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!
 
Michael Goshey
Greenhorn
Posts: 14
1
  • Number of slices to send:
    Optional 'thank-you' note:

Jeanne Boyarsky wrote:Now that a second person said it, I lean more towards changing it!


Or maybe just modify the monospace font, which sort of implies they are actual classes.
 
Greenhorn
Posts: 3
  • Number of slices to send:
    Optional 'thank-you' note:
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:
Screenshot-from-2023-09-26-13-01-00.png
 
Asiel Leal Celdeiro
Greenhorn
Posts: 3
  • Number of slices to send:
    Optional 'thank-you' note:
Ok, FWIW, it does print 3 if I run this code as an actual Java class.

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:

 
Michael Goshey
Greenhorn
Posts: 14
1
  • 1
  • Number of slices to send:
    Optional 'thank-you' note:

Asiel Leal Celdeiro wrote:Ok, FWIW, it does print 3 if I run this code as an actual Java class.



The code in the text (within main()) actually calls , whereas your code appears to be calling directly. Switch it to call printInfo() and you should get the appropriate result. Cheers!
 
Greenhorn
Posts: 1
  • Number of slices to send:
    Optional 'thank-you' note:
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.
 
Asiel Leal Celdeiro
Greenhorn
Posts: 3
  • Number of slices to send:
    Optional 'thank-you' note:

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.



It's here: https://www.selikoff.net/ocp17/
 
Master Rancher
Posts: 4913
74
  • Number of slices to send:
    Optional 'thank-you' note:

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.
 
Michael Goshey
Greenhorn
Posts: 14
1
  • Number of slices to send:
    Optional 'thank-you' note:
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!
 
Michael Goshey
Greenhorn
Posts: 14
1
  • Number of slices to send:
    Optional 'thank-you' note:
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."
 
Jeanne Boyarsky
author & internet detective
Posts: 41911
909
  • Number of slices to send:
    Optional 'thank-you' note:

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.


We referred to something that people interpretted as a class that wasn't. I agree that's not good .
 
Jeanne Boyarsky
author & internet detective
Posts: 41911
909
  • Number of slices to send:
    Optional 'thank-you' note:

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!


It wasn't included because it isn't on the test. Creating an empty directory is more common than creating an empty file.

Also, creating an empty file can be done by writing an empty string (or list) to it. So less essential for people to know the method.
 
Jeanne Boyarsky
author & internet detective
Posts: 41911
909
  • Number of slices to send:
    Optional 'thank-you' note:

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."


Agreed that is an errata. Added to list and credited you!
 
Greenhorn
Posts: 4
2
  • 1
  • Number of slices to send:
    Optional 'thank-you' note:
Hello there all, I am not sure if this was already mentioned.


In the section Declaring static Interface Methods (Located in Chapter 7)

(First example of this method)
The Skip class is not implementing Hop. Therefore, it can't access getJumpHeight().

This is an amazing book.


--
Caleb
 
Jeanne Boyarsky
author & internet detective
Posts: 41911
909
  • Number of slices to send:
    Optional 'thank-you' note:
Confirmed and added to the errata. Thanks Caleb!
 
Caleb Josue Ruiz Torres
Greenhorn
Posts: 4
2
  • Number of slices to send:
    Optional 'thank-you' note:
Hello there all,

Table 10.7 contains some methods on Stream classes that shouldn't include space. e.g. `IntUnary Operator` shall be `IntUnaryOperator`. There are several functions in this table containing spaces.

Thanks!



--
Caleb
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic
vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |