Object addresses!

Hi,

I am using JDK 5.0/NetBeans 4.0 and wondered if there was a way to determine the address of an object as it is in C/C++?

Could I determine the address of an object of a primitive type such as an int, or an address of an object derived from some class? I have no programming need to do this but sometimes displaying object address can help me learn a bit about what is going on behind the scenes!

Regards FamerJo

[440 byte] By [FarmerJoa] at [2007-10-1 8:31:11]
# 1
> I am using JDK 5.0/NetBeans 4.0 and wondered if there> was a way to determine the address of an object as it> is in C/C++?No. The closest to an "address" (if it even could be considered one) would be the usage of System.identityHashCode(Object)
warnerjaa at 2007-7-9 22:35:02 > top of Java-index,Java Essentials,New To Java...
# 2
If you want to see the internals of what is happening use a profiler.There are a number of free profilers. Use google to find them
Peter-Lawreya at 2007-7-9 22:35:02 > top of Java-index,Java Essentials,New To Java...
# 3
Hi,Yes I will do that - thanks.FarmerJo
FarmerJoa at 2007-7-9 22:35:02 > top of Java-index,Java Essentials,New To Java...