易百教程

362、java.util.Date 和 java.sql.Date 数据类型的主要区别是什么?

java.util.Datejava.sql.Date 的主要区别在于,java.sql.Date 表示没有时间信息的日期,而 java.util.Date 表示日期和时间信息。