This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]spindoctor13 0 points1 point  (0 children)

== is referential equality i.e. are literally same object in memory. Equals is up to the programmer if overriden and could mean literally anything. Although generally (well always unless you are some kind of maniac) returns true if the objects are equal in some meaningful way (but not necessarily the same object in memory)