Java OCA OCP Practice Question 721

Question

Of the classes LocalDate, LocalDateTime, LocalTime, and LocalTimeStamp,

how many include hours, minutes, and seconds?

  • A. One
  • B. Two
  • C. Three
  • D. Four


B.

Note

LocalDate only includes the date portion and not the time portion.

There is no class named LocalTimeStamp.

The other two, LocalDateTime and LocalTime, both include the time elements.

Option B is correct.




PreviousNext

Related