JLink`
JLink`
SameObjectQ
SameObjectQ[object1,object2]
returns True if and only if the JavaObject expressions object1 and object2 refer to the same Java object.
Details
- To use SameObjectQ, you first need to load J/Link using Needs["JLink`"].
- SameObjectQ behaves like the Java language's == operator as applied to object references.