This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Sybex OCP Java 8 Study Guide Chapter 2-3 p 100,129,130,144,164  RSS feed

 
Greenhorn
Posts: 13
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think I found some minor typos in Chapter 2 and 3.

Chapter 2, p 100, Q 13, answer B : I think it's missing an "are" in "All of the instance variables are marked ...". Same problem in the online version.


Chapter 3

P 129 second-last paragraph : it should refer to Chapter 7 (Concurrency) instead of Chapter 8 (IO)

P 130 table 3.4 : the add(E element) method should have a boolean return type. The remove(int index) method should have a E return type.

P 144-145 : I think the errata could be a bit more comprehensive regarding the package of the Comparable interface. Mike has spotted it 3 times in its original post:
- unnecessary import on the code sample p 143
- wrong code sample on the LegacyDuck code sample p 145
- wrong paragraph at the bottom of p 145
There is also the same error in the Animal code sample at the bottom of p 144

P 164 Q 9: although not technically an error and not something that could happen at the real exam, shouldn't it be a "Choose all that apply" question for extra trickiness ?

In the errata list, p 159 should refer to Chapter 3 instead of Chapter 4

Thanks
 
author & internet detective
Posts: 39129
723
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Seb. I've logged them all in the errata except for the suggestion about page 164 which I put in our private list.

Seb Cano wrote:P 129 second-last paragraph : it should refer to Chapter 7 (Concurrency) instead of Chapter 8 (IO)


We had a renumbering of chapters after we were mostly done writing. We tried to change all the references, but this one escaped! (Aka it wasn't a random typo - there was a reason for it at least)
 
Greenhorn
Posts: 21
Chrome IntelliJ IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne,

I don't completely agree with your errata on page "https://www.selikoff.net/java-ocp-8-programmer-ii-study-guide/" regarding the error Seb pointed for page 130, chapter III.

You wrote :

In table 3.4, the first should have a boolean return type. The second to last row should return E, not void.



but only the remove method should return E, not all method "from second to last row returning void should return E", because 2nd one (void add(int index, E element)) is actually correct in the book.

I would suggest more specifically :

In table 3.4, the 1st (add(E element)) should have a boolean return type. The 6th (remove(int index)) should return E, not void.

 
Jeanne Boyarsky
author & internet detective
Posts: 39129
723
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"second to last" means second from the bottom, not a range. That said, I changed to your verbiage since it is more explicit.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!