Oracle Java SE 8 Programmer II 1z0-809 Question # 19 Topic 2 Discussion

Oracle Java SE 8 Programmer II 1z0-809 Question # 19 Topic 2 Discussion

1z0-809 Exam Topic 2 Question 19 Discussion:
Question #: 19
Topic #: 2

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?


A.

2016-03-01


B.

A DateTimeException is thrown.


C.

2016-02-29


D.

A compilation error occurs at line n1.


Get Premium 1z0-809 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.