1.

How is Date stored in database?(a) java.sql.Date(b) java.util.Date(c) java.sql.DateTime(d) java.util.DateTimeThis question was addressed to me at a job interview.My question is based upon Data Type-Date, TimeZone in division Data Types, Variables and Arrays of Java

Answer»

The correct choice is (a) java.sql.DATE

Easy EXPLANATION: java.sql.Date is the DATATYPE of Date STORED in database.



Discussion

No Comment Found

Related InterviewSolutions