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