Tips and Traps¶
- You cannot get the address of an object in Java (without hacking).
System.identityHashCode(obj)
is the next best thing you can have. This trick (combined with the timestamp) is used to generate default seed for random number generators in Java.