nerdexam
Oracle

1Z0-809 · Question #195

1Z0-809 Question #195: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-809 to reveal the answer and full explanation for question #195. The question stem and answer options stay visible for context.

Question

In 2015, daylight saving time in New York, USA, begins on March 8th at 2:00 AM. As a result, 2:00 AM becomes 3:00 AM. Given the code fragment: ZonedId zone = ZoneId.of("America/New_York"); ZonedDateTime dt = ZonedDateTime.of(LocalDate.of(2015, 3, 8), LocalTime.of(1, 0), zone); ZonedDateTime dt2 = dt.plusHours(2); System.out.print(DateTimeFormatter.ofPattern("H:mm - ").format(dt2)); System.out.print(ChronoUnit.HOURS.between(dt, dt2)); What is the result?

Options

  • A3:00 - difference: 2
  • B2:00 - difference: 1
  • C4:00 - difference: 3
  • D4:00 - difference: 2

Unlock 1Z0-809 to see the answer

You've previewed enough free 1Z0-809 questions. Unlock 1Z0-809 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.

Full 1Z0-809 Practice