The Gingham Dog The Gingham Dog
Here is a picture of this situation.
Even though both objects have equivalent data inside of them,
(strA
==
strB)
The ==
reports false because there
are two different objects.
Imagine that you have three reference variables:
itemA
,
itemB
,
itemC
.
And say that itemA
==
itemBitemB
==
itemC