Oracle
1Z0-829 · Question #33
1Z0-829 Question #33: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-829 to reveal the answer and full explanation for question #33. The question stem and answer options stay visible for context.
Handling date, time, text, numeric and boolean values
Question
Daylight Saving Time (DST) is the practice of advancing clocks at the start of spring by one hour and adjusting them backward by one hour in autumn.
Considering that in 2021, DST in Chicago (Illinois) ended on November 7th at 2 AM, and given the fragment:
ZonedDateTime zdt = ZonedDateTime.of(
zoneID.of("America/Chicago"),
ZonedDateTime.zdt = ZonedDateTime.of(
LocalDate.of(2021, 11, 7),
LocalTime.of(1, 30),
zoneID
));
ZonedDateTime anHourLater = zdt.plusHours(1);
System.out.println(zdt.getHour() == anHourLater.getHour());
What is the output?
Options
- Atrue false
- Bfalse true
- Ctrue true
- Dfalse false
- Etrue null
Unlock 1Z0-829 to see the answer
You've previewed enough free 1Z0-829 questions. Unlock 1Z0-829 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#ZonedDateTime#Daylight Saving Time#Timezone transitions#DST ambiguity