exam questions

Exam 1z0-809 All Questions

View all questions & answers for the 1z0-809 exam

Exam 1z0-809 topic 1 question 97 discussion

Actual exam question from Oracle's 1z0-809
Question #: 97
Topic #: 1
[All 1z0-809 Questions]

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:

Which is the result?

  • A. 3:00 "" difference: 2
  • B. 2:00 "" difference: 1
  • C. 4:00 "" difference: 3
  • D. 4:00 "" difference: 2
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
vidhuharu
3 months, 1 week ago
Selected Answer: D
when tested. option D
upvoted 1 times
...
vidhuharu
3 months, 1 week ago
Selected Answer: C
The difference will be 3 hours , which is 1AM -4AM =3hrs difference . so the option is C
upvoted 1 times
...
asdfjhfgjuaDCV
10 months, 1 week ago
D is the correct answer
upvoted 1 times
...
steefaand
11 months, 2 weeks ago
Selected Answer: D
D is correct.
upvoted 1 times
...
Samriddji
3 years, 1 month ago
D. tested
upvoted 1 times
...
Tarik2190
3 years, 8 months ago
Answer is D, public class Test { public static void main (String[] args) { ZoneId 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("difference: " + ChronoUnit.HOURS.between(dt,dt2)); } }
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago