These two types can be expressed identically in Java. These can all be expressed identically as byte arrays in Java. 8.6 BIT The SQL BIT type can be mapped directly to the Java boolean type. These therefore can be mapped to Java's byte, short, int, and long data types. REAL is required to support 7 digits of mantissa precision.
DATE consists of day, month, and year.
TIME consists of hours, minutes and seconds. There is a standard Java class java.util.Date that provides date and time information. We therefore define three subclasses of java.util.Date. In the case of java.sql.Date the hour, minute, second, and milli-second fields of the java.util.Date base class are set to zero. In the case of java.sql.Time the year, month, and day fields of the java.util.Date base class are set to 1970, January, and 1, respectively.