RE: difference between java.sql.Date and java.util.Dat...
The d/w java.util.date and java.sql is miner diffrence. The java.util.date is return the date with time and date and sql.date is return data with is retrive the data entry date i.e whitch time the data has enry or not.
RE: difference between java.sql.Date and java.util.Dat...
hi Rajan how r u ? your answer for the difference between java.util.Date & java.sql.Date is not understandable.so please give more information about that.thanking you suresh.
RE: difference between java.sql.Date and java.util.Dat...
Hi
1) java.util.Date is the superclass for java.sql.Date i.e public class Date extends java.util.Date { }
2) java.sql.Date is used for databases where we just need to store date and not time but java.util.date returns Date as well as time
3) java.util.Date has constructor with 0 parameters but java.sql.Date does not has the one so we canot use new Date() here time in milliseconds needs to be passed
RE: difference between java.sql.Date and java.util.Dat...
Hi java.util.Date contains many methods.This class extends java.lang.object implements java.io.Serializable java.lang.Cloneable java.lang.Comparableit can contains both bean properties are also availablewhere as the java.sql.Date-------------- java.sql.Date extends java.util.Date {
RE: difference between java.sql.Date and java.util.Date
1. The java.sql.Date stores only day month and year. 2. The java.util.Date stores day month year along with time information upto milliseconds accuracy.
the sql versions are namely: 1. java.sql.Date - having only date information 2. java.sql.Time - having only time information 3. java.sql.TimeStamp - having date + time information with nanoseconds precision.
These are created as a wrapper for SQL DATE TIME TIMESTAMP datatypes which the java.util.Date is inefficient to handle.