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 and Options

  • 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.
Wolfram Research (2007), SameObjectQ, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/SameObjectQ.html.

Text

Wolfram Research (2007), SameObjectQ, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/SameObjectQ.html.

CMS

Wolfram Language. 2007. "SameObjectQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/JLink/ref/SameObjectQ.html.

APA

Wolfram Language. (2007). SameObjectQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/JLink/ref/SameObjectQ.html

BibTeX

@misc{reference.wolfram_2023_sameobjectq, author="Wolfram Research", title="{SameObjectQ}", year="2007", howpublished="\url{https://reference.wolfram.com/language/JLink/ref/SameObjectQ.html}", note=[Accessed: 21-April-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_sameobjectq, organization={Wolfram Research}, title={SameObjectQ}, year={2007}, url={https://reference.wolfram.com/language/JLink/ref/SameObjectQ.html}, note=[Accessed: 21-April-2024 ]}