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.
Step by Step Answer:
Programmers Guide To Java SE 8 Oracle Certified Associate OCA
ISBN: 9780132930215
1st Edition
Authors: Khalid Mughal, Rolf Rasmussen