Java OCA OCP Practice Question 1805

Question

What package is the LocalTime class in?

  • A. java.date
  • B. java.lang
  • C. java.time
  • D. java.util


C.

Note

The date and time classes added in Java 8 are in the java.time package, making Option C correct.

The older date classes are in the java.util package.




PreviousNext

Related