Hi,
I've got a Java object with me.
I'm able to find the name of the class of which it is an instance, the attributes of that object etc., using the reflect package.
But how is it that I find the actual name of that object.
I am not sure how to getting an object name. You can accomplish what ever you want to do on the object. You can assign this object to another object and work on that object. It will copy the memory address only.
If you think of the name of the identifier in the original source, then I must dissapoint you. It is lost during compiling. Go and get a look at some Java Virtual Machine internals at sun's java site:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.