What is the id=xxx
next to variable entries in the Eclipse Debugger> I know it seems to uniquely identify the object. But what I can't tell is what it's relationship to the object is.
Asked
Active
Viewed 1.1k times
30
-
2possible duplicate of [Java object ID in jvm](http://stackoverflow.com/questions/3289550/java-object-id-in-jvm) – Petar Minchev Jul 25 '12 at 13:48
-
@PetarMinchev Not completely. Your linked question is quite more specific, I think. – brimborium Jul 25 '12 at 13:52
-
Another possible duplicate: [what the id mean in the eclipse variables view?](http://stackoverflow.com/q/11060897/716076) – Chris Dargis Jul 25 '12 at 14:15
3 Answers
28
The ID number is arbitrarily assigned by the eclipse debugger, it is just a clue that can help when you are debugging to easily figure out if two variables are pointing to the same object or not ...

aleroot
- 71,077
- 30
- 176
- 213
-
How can I still watching this id (I mean monitoring this object) – Mohammed Subhi Sheikh Quroush Dec 26 '13 at 15:08
3
From http://www.manning-sandbox.com/thread.jspa?threadID=11426 it looks like it is the JPDA ObjectReference.uniqueId

Ajay George
- 11,759
- 1
- 40
- 48