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

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.

Step by Step Solution

3.42 Rating (171 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

e The LocalDateTime class does not provide the isLeapYear ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!