DEVFYI - Developer Resource - FYI

What does normalization mean for java.sql.Date and java.sql.Time?

JDBC Interview Questions and Answers


(Continued from previous question...)

What does normalization mean for java.sql.Date and java.sql.Time?

These classes are thin wrappers extending java.util.Date, which has both date and time components. java.sql.Date should carry only date information and a normalized instance has the time information set to zeros. java.sql.Time should carry only time information and a normalized instance has the date set to the Java epoch ( January 1, 1970 ) and the milliseconds portion set to zero.

(Continued on next question...)

Other Interview Questions