Oracle
1Z0-809 · Question #27
Given the code fragment: LocalDate valentinesDay = LocalDate.of(2015, Month.FEBRUARY, 14); LocalDate next15Days = valentinesDay.plusDays(15); LocalDate nextYear = next15Days.plusYears(1); // line n1…
The correct answer is A. 2016-03-01. You've hit your session limit · resets 5:20pm (America/New_York)
Question
Given the code fragment:
LocalDate valentinesDay = LocalDate.of(2015, Month.FEBRUARY, 14);
LocalDate next15Days = valentinesDay.plusDays(15);
LocalDate nextYear = next15Days.plusYears(1); // line n1
System.out.println(nextYear);
What is the result?
Options
- A2016-03-01
- BA DateTimeException is thrown.
- C2016-02-29
- DA compilation error occurs at line n1.
How the community answered
(56 responses)- A84% (47)
- B2% (1)
- C11% (6)
- D4% (2)
Explanation
You've hit your session limit · resets 5:20pm (America/New_York)
Community Discussion
No community discussion yet for this question.