Lines 10 and 11 instantiate two SimpleDate objects with the same data.Line
14 sets the d3 object reference to point to the d1 object.Line 17 instantiates
the d4 object with different data.
In line 20,when we compare d1and d2using the equality operator,the
result is false,because the object references d1and d2 point to two different
objects. However,when we compare d1 and d3(line ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.