• 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

Sybex:Java 8 OCA/OCP Practice Tests Chapter 17 question 10 page 518 typo in explanation

 
Ranch Hand
Posts: 215
11
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sybex:Java 8 OCA/OCP Practice Tests Chapter 17 question 10  page 292 typo in explanation page 518



typo at page 518 In the answer explanation:
"Since thisOne is an exact match but thatOne is a whole day before, the output is false true, making Option B correct."

It should be thatOne is a whole day AFTER instead of BEFORE.
thatOne=2018-09-29
later=2018-09-28

by alinvlad05
 
Saloon Keeper
Posts: 15630
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are correct, but I think the explanation would be easier to match to the source code if it read:

Since later matches thisOne exactly, but later is a whole day before thatOne, the output is false true, making Option B correct.

 
author & internet detective
Posts: 41915
910
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good catch. Added to the errata for the Java 8 and 17 books. (dates weren't on the Java 11 exam)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic