Which date class should I use in Java 8?
Each one of the Date classes are for specific purposes: If you want to use your Date in an SQL/JDBC context, use the java.sql.Timestamp. java.util.Date is the old Java API, it is not thread safe, you can difficultly handle time zoning, and on the top of all, it is poorly designed: one simple uniformity is … Read more