Which of these method returns an instance of DateFormat that can format time information?
(a) getTime()
(b) getTimeInstance()
(c) getTimeDateinstance()
(d) getDateFormatinstance()
The question was posed to me in unit test.
This interesting question is from Text Formatting topic in division Regular Expressions of Java