==
tests if they are equal, and is
is testing if they are the same object.
They are the same value so ==
succeeds, but they are not the same reference so is
fails.
You are viewing a single comment's thread from:
==
tests if they are equal, and is
is testing if they are the same object.
They are the same value so ==
succeeds, but they are not the same reference so is
fails.