Could someine explain this extract in one's own words, please.
A program may produce unpredictable results if it attempts to distinguish two references to equal values of a value-based class, whether directly via reference equality or indirectly via an appeal to synchronization, identity hashing, serialization, or any other identity-sensitive mechanism. Use of such identity-sensitive operations on instances of value-based classes may have unpredictable effects and should be avoided.
Yeah, if I make a tour on the API I come always at complicated stuff out. After about 1 hour or two I notice then : "What? It felt like about half an hour" .
So the answer is: No I simply looked at the LocalDate class from the Java Date-Time API and there is written of course, that it is a value-based class.
Apparently your meaning, that I ask you, what are all the identy-sensitive operations, but my intend is to ask you to explain me the intention of the test only with the reference equality( == ), because the others are all marked as or, so they should not differ in the general working of the value-based classes in my opinion.
The quote seems to be a convoluted way of comparing the equality operator versus the equals() method ... and basically say "use the equals() method for cases where the equality operator will not work"...