Java OCA OCP Practice Question 1051

Question

Which class provides locale-sensitive text formatting for date and time information?

  • A. java.util.TimeFormat
  • B. java.util.DateFormat
  • C. java.text.TimeFormat
  • D. java.text.DateFormat


D.

Note

The java.text.DateFormat class formats date and time data into strings that are appropriate to locales.




PreviousNext

Related