InterviewSolution
| 1. |
What Is The Java.sql.timestamp Class? |
|
Answer» Within a JAVA DATABASE, you can use the TIMESTAMP type to store a TIME with a resolution in nanoseconds. Java's Date class, on the other hand, only measures to milliseconds. Therefore, the JDBC developers have made a java.sql.Timestamp class. This new Timestamp class EXTENDS the java.util. Date class by adding a nanosecond variable to store the time-stamp information. Within a Java database, you can use the TIMESTAMP type to store a time with a resolution in nanoseconds. Java's Date class, on the other hand, only measures to milliseconds. Therefore, the JDBC developers have made a java.sql.Timestamp class. This new Timestamp class extends the java.util. Date class by adding a nanosecond variable to store the time-stamp information. |
|