Which declarations will correctly create the date 13 August 2009? Select the four correct answers. (a) LocalDate

Question:

Which declarations will correctly create the date 13 August 2009?

Select the four correct answers.

(a) LocalDate date0 = LocalDate.of(2009, 7, 13);

(b) LocalDate date1 = LocalDate.of(2009, 8, 13);

(c) LocalDate date2 = LocalDate.of(2009, Month.AUGUST,13);

(d) LocalDate date3 = LocalDate.of(0, 0, 0).withYear(2009).withMonth(8). withDayOfMonth(13);

(e) LocalDate date4 = LocalDate.of(2008, 7, 12).plusYears(1).plusMonths(1). plusDays(1);

(f) LocalDate date5 = new LocalDate(2009, 8, 13);

(g) LocalDate date6 = LocalDate.of(1, 1, 1).plus(Period.of(2008, 7, 12));

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: