hi,
The object reference does it always remain the same? ...because my findings are different. Basically i create one object that i move it around from one objects arraylist to another objects arraylist... What i need to do is to be able to uniquely identify this object so thats i can take some measurements. I wasnt lucky with my searches... maybe i am not phrasing something correctly. Could you please explain or give me a link to a solution for such problem?
p.s: The id needs to be unique only over one JVM
> > The object reference does it always remain the
> same?
>
> Yes!
depends on your definition of "always".
If you restart the JVM you'd get another one, if you let the thing go out of scope and recreated it from some resource it'd get another one, if you run the thing on several machines simultaneously it'd almost certainly be different on each one.