Home » JAVA Programming » Java Basic » Question
  1. Which one of the following contains date information?
    1. java.io.Time
    2. java.io.TimeStamp
    3. java.sql.TimeStamp
    4. java.sql.Time
    5. None of these
Correct Option: C

java.sql.Time contains only time. Whereas, java.sql.TimeStamp contains both time and date.



Your comments will be displayed only after manual approval.