From JavaDoc class java.sql.Timestamp (highlighted by me)
Due to the differences between the Timestamp class and the java.util.Date class mentioned above, it is recommended that the code does not display the Timestamp value as an instance of java.util.Date. Inheriting the relationship between Timestamp and java.util.Date really means implementation inheritance, not an inheritance type .
What does it mean to say implementation inheritance, not type inheritance? Is this the case of HAS-A versus IS-A?
, , , java.sql.Timestamp extends java.util.Date , Timestamp, Date. , java (, ++), Timestamp Date.
java.sql.Timestamp
java.util.Date
Timestamp
Date
, , Timestamp Date, , Timestamp , , Date.
Source: https://habr.com/ru/post/1530927/More articles:ember.js with MySQL connection - mysqlError updating sdk - androidHow to set up Android development environment using STS, Android SDK, Maven and Spring Android - androidusing gcc -m32 flag cannot find -lgcc and -lgcc_s - assemblyArgumentError: Wrong number of arguments in Ruby - ruby ββ| fooobar.comHow to mix android.support.v4.app.Fragment and android.app.Fragment - androidHow to create a .s (asm) file in an Android.mk file - androidAngularJS ng-table pagination: no lines - javascriptDefine symbol for source assembly file (.s) in Android.mk? - assemblyHow to prevent retina from moving widget element down - javascriptAll Articles