Which of these class allows us to define our own formatting pattern for dates and time?

Which of these class allows us to define our own formatting pattern for dates and time?
A. DefinedDateFormat
B. SimpleDateFormat
C. ComplexDateFormat
D. UsersDateFormat
 
Answer: b
Explanation: The DateFormat is a concrete subclass of DateFormat. It allows you to define your own formatting patterns that are used to display date and time information.
 

Tìm kiếm

Back
Top