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

Errata for OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide - Chap 6 Questions  RSS feed

 
Ranch Hand
Posts: 238
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Page 319, question 9:

Which of the following prints OhNo with the assertion failure when the number is negative?


should be:

Which of the following prints OhNo with the assertion failure when the number is positive?



Question 11 is wrong in the online version of the test from https://sybextestbanks.wiley.com. It shows IllegalFormatException as option A, but gives the same answer as correct (implying IllegalFormatException isn't a RuntimeException). The book is correct though, as the value for option A is Exception. I take it this has already been spotted and corrected, but I thought I'd add a note here for those who are only taking the tests online.

Page 32, question 17: technically, a class which implements Serializable may be in a try-with-resource statement (as long as it also implements Autocloseable or Closeable).
 
Ranch Hand
Posts: 44
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Awesome, I just finished the review questions for chapter 6 and I agree I had some trouble too understanding the question as stated with respect to the given answers :-)

Regards,
Guillaume
 
T Vergilio
Ranch Hand
Posts: 238
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's reassuring, thanks for letting me know

Hopefully Jeanne will confirm these once she gets to see them.
 
author & internet detective
Posts: 39129
723
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys.

#9 - This is in error and I've logged it. This is a good catch because none of the answers are correct as currently worded.
#11 - We did not know about this. In theory, the online materials are the same as the book (plus the online materials could have corrections.) In practice, some rendering errors slip through. It's also more difficult than you'd expect to get the online stuff corrected (we can't do it directly.) So I batch them and then bring them up with Wiley. It'll take me about a month to do that as I'm really busy in February mentoring a robotics team.
# 17 on page 322 (your turn to make a typo - calling it page 32), that's true. It's not an errata in that we planned to write that. It's also not wrong per se in that you can't assume other things that aren't in the question. It could be worded more precisely though which I've noted (in my private list) for if we write a Java 9 version of this book.
 
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!