https://www.ntu.edu.sg/home/ehchua/programming/java/J3d_String.html
-------------
What you want is the systems identity hash. You can get it by:
int id = System.identityHashCode(t);
The default implementation of Object.toString() is:
public String toString() {
return getClass().getName() + "@" + Integer.toHexString(hashCode());
}
The default implementation of Object.hashCode() is System.identityHashCode().
But also the systems identity hash code just garantees to be constant for the same instance (not even unique yet). That need not to be the reference value - whatever this will be in the jvm implementation. The real reference value is opaque, not really offered to the public in java. You cannot transform it to a hex address and have a look into memory or something like that.
------------------
The real reference value is opaque
찾기가 어려운 것.
https://stackoverflow.com/questions/2947943/variables-reference-value-of-string
댓글 없음:
댓글 쓰기