The most obvious way to compare two objects is of course the == operator . This will in fact check for equality. To check if two objects are the same instance, we should use identical() .
The most obvious way to compare two objects is of course the == operator . This will in fact check for equality. To check if two objects are the same instance, we should use identical() .