Question:When checking to see if two variables contain the same instance of an object, which of the following comparisons should be used? 

A if($obj1->equals($obj2) && ($obj1 instanceof $obj2)) 

B if($obj1->equals($obj2)) 

C if($obj1 === $obj2) 

D if($obj1 instanceof $obj2) 

E if($obj1 == $obj2) 

+ Answer
+ Report
Total Preview: 1225

Copyright © 2024. Powered by Intellect Software Ltd