InterviewSolution
Saved Bookmarks
| 1. |
Which of these class allows us to define our own formatting pattern for dates and time?(a) DefinedDateFormat(b) SimpleDateFormat(c) ComplexDateFormat(d) UsersDateFormatI had been asked this question by my school principal while I was bunking the class.The doubt is from Text Formatting topic in division Regular Expressions of Java |
|
Answer» CORRECT choice is (b) SimpleDateFormat Best 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. |
|