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.dateTimeI had been asked this question in final exam.This question is from JDBC topic in portion Java Beans & JDBC of Java

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