Home » JAVA Programming » Java Basic » Question
  1. Which of the following contains both date and time?
    1. java.util.dateTime
    2. java.util.date
    3. java.sql.date
    4. java.io.date
    5. None of these
Correct Option: A

java.util.date contains both date and time. Whereas, java.sql.date contains only date.



Your comments will be displayed only after manual approval.