1.

Which of the following contains both date and time?(a) java.io.date(b) java.sql.date(c) java.util.date(d) java.util.dateTime

Answer» Correct answer is (d) java.util.dateTime

Easiest explanation: java.util.date contains both date and time. Whereas, java.sql.date contains only date.


Discussion

No Comment Found

Related InterviewSolutions