Question ID: UK8296377
Daylight saving time of 2018 in United States (US) ended at 4-Nov-2018 2:00 AM.
What will be the result of compiling and executing below code?
package com.examtest.ocp;
import java.time.*;
public class Test {
public static void main(String [] args) {
LocalDate date = LocalDate.of(2018, 11, 4);
LocalTime time = LocalTime.of(13, 59, 59);
ZonedDateTime dt = ZonedDateTime.of(date, time, ZoneId.of("America/New_York"));
dt = dt.plusSeconds(1);
System.out.println(dt.getHour() + ":" + dt.getMinute() + ":" + dt.getSecond());
}
}