In java, both the java.util and the java.sql package contain a Date class, So what is the difference between them?
java.util
java.sql
Date
If one
Java.util.Date is the generic all-purpose Date object. It stores a Date (as a long) and allows you to display it.
java.sql.Date extends java.util.Date. Main difference to note is that java.sql.Date does not have a time component.