Question: what is the difference between date and timestamp in java?
Answer: The class Date represents a specific instant in time, with millisecond precision. Timestamp has nanosecond precision. Both java. ... Date have only millisecond precision.