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

Sybex Java 8 OCA/OCP Practice Tests Chapter 17 question 40 mock answer typo page 521

 
Ranch Hand
Posts: 216
11
  • 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 40 mock answer typo page 521

Typo is in this answer:
"C. Normally, adding an hour would result in 02:00 in the same time zone offset of –05:00.
Since the hour is repeated, it is 01:00 again. However, the time zone offset changes instead.
Therefore, Option C is correct."

Question 40:
"Daylight savings time ends on November 5, 2017 at 2 a.m. when we repeat the hour.
Suppose we have a ZonedDateTime that outputs 2017-11-05T01:00-04:00[America/ New_York] when calling toString()
What is a possible value of the ZonedDateTime obtained by adding an hour to this value?"

It should be "Normally, adding an hour would result in 02:00 in the same time zone offset of –04:00."
-04:00 instead of -05:00 at the end because the original offset is -04:00 and then it changes.

by alinvlad05
 
author & internet detective
Posts: 42103
933
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
The explanation is using the other state as a reference though so it is correct. It is describing a logical way of thinking about what happens.
reply
    Bookmark Topic Watch Topic
  • New Topic