What is a possible output of the following?
LocalDate trainDay = LocalDate.of(2017, 5, 13);
LocalTime time = LocalTime.of(10, 0);
ZoneId zone = ZoneId.of("America/Los_Angeles");
ZonedDateTime zdt = ZonedDateTime.of(trainDay, time, zone);
Instant instant = zdt.toInstant();
instant = instant.plus(1, ChronoUnit.YEARS);
System.out.println(instant);
F.
While an Instant represents a specific moment in time using GMT, Java only allows adding or removing units of DAYS or smaller.
This code throws an UnsupportedTemporalTypeException because of the attempt to add YEARS.
Therefore, Option F is correct.