Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Questions re Sybex OCP Java 8 study guide  RSS feed

 
Greenhorn
Posts: 8
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have some questions on various points in the Sybex OCP8 study guide. I don't know if it's my own misunderstanding that's the problem or if it's the wording of the text. Any help would be appreciated.

p84. In the bottom paragraph. 'We provide two methods for retrieving the total number of favorite foods as
well as a method to retrieve a food based on an index value.'
To me that sounds like 3 methods altogether but I think there are only 2 that are relevant. Should it be rewritten for clarity?

p359 - I'm puzzled by the third sentence - 'As you may remember from our discussion of polymorphism in Chapter 2, even though the reference type changes, the underlying object is still a ConcurrentHashMap.' But in the examples above, the reference type hasn't changed and the object has.

p377. In the third sentence in the box (starting with 'Alternatively') the end doesn't seem to match up with the start. Are there some words missing?

p463 - first sentence. What is a 'path representative'? Does 'representative' have a specific meaning in Java that I've not come across before?

p476 - middle of the page 'the NIO.2 API bridges information about streams,'. What does this phrase mean?

Thanks,
Nick.
 
author & internet detective
Marshal
Posts: 38144
617
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Nick Robinson wrote:p84. In the bottom paragraph. 'We provide two methods for retrieving the total number of favorite foods as
well as a method to retrieve a food based on an index value.'
To me that sounds like 3 methods altogether but I think there are only 2 that are relevant. Should it be rewritten for clarity?


Yes.

Nick Robinson wrote:p359 - I'm puzzled by the third sentence - 'As you may remember from our discussion of polymorphism in Chapter 2, even though the reference type changes, the underlying object is still a ConcurrentHashMap.' But in the examples above, the reference type hasn't changed and the object has.


I need to think on what we meant, but you look right.

Nick Robinson wrote:377. In the third sentence in the box (starting with 'Alternatively') the end doesn't seem to match up with the start. Are there some words missing?


Seems right to me. Here's the sentence if anyone wants to comment on our grammar "Alternatively, you may expect some collectors to perform well on a
parallel stream, resorting to single-threaded processing at runtime."

Nick Robinson wrote:p463 - first sentence. What is a 'path representative'? Does 'representative' have a specific meaning in Java that I've not come across before?


I think that is a typo and should be the path it represents.

Nick Robinson wrote:p476 - middle of the page 'the NIO.2 API bridges information about streams,'. What does this phrase mean?


It means that the API allows you to connect to "legacy" IO streams.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!