0 votes
in JAVA by

Which class is used to format date and time values in Java?

a) DateFormat

b) SimpleDateFormat

c) DateTimeFormatter

d) DateFormatter

1 Answer

0 votes
by
Solution: c) DateTimeFormatter

Explanation: The DateTimeFormatter class is used to format date and time values in Java.
...