1.

Which of this class can be used to format dates and times?(a) Date(b) SimpleDate(c) DateFormat(d) textFormatI have been asked this question by my college professor while I was bunking the class.Question is taken from Text Formatting topic in section Regular Expressions of Java

Answer»

The correct choice is (c) DateFormat

Explanation: DateFormat is an ABSTRACT class that provides the ability to FORMAT and PARSE DATES and times.



Discussion

No Comment Found

Related InterviewSolutions