Which statement is true about the Date and Time API? Select the one correct answer. (a) The

Question:

Which statement is true about the Date and Time API?

Select the one correct answer.

(a) The classes LocalDate and LocalDateTime provide the isLeapYear() method to check for a leap year.

(b) The classes LocalTime, LocalDate, and LocalDateTime provide the isEqual() method to test whether two temporal objects of the same type are equal.

(c) The class Period provides the withWeeks() method, which returns a copy of this period, where the number of days is set according to the number of weeks specified.

(d) The classes LocalTime, LocalDate, and Period provide the plusWeeks() method, which returns a new object, where the number of days corresponding to the specified number of weeks has been added.

(e) None of the above.

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

Step by Step Answer:

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