• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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

 
Ranch Hand
Posts: 216
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
 
Bartender
Posts: 15741
368
  • 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: 42154
937
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)
 
reply
    Bookmark Topic Watch Topic
  • New Topic