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
2018년 4월 18일 수요일
피드 구독하기:
댓글 (Atom)
[Android Studio] Installation and Make a Layer for Mac OS(High Sierra)
1. download android studio https://developer.android.com/studio/#downloads 2. Make a Shared Resource(String in this case) 3...
-
"Unicode Character 'NULL' (U+0000)" https://www.fileformat.info/info/unicode/char/0000/index.htm "Why Char Uses 2 ...
-
1. Connect Arduino web-site https://www.arduino.cc/en/Main/Software 2. Download the IDE for Mac 3. Completion
-
1. 인터페이스의 필요성 □ 인터페이스의 역할 1. 개발 코드를 수정하지 않고 사용객체 변경 2. 객체 선택에 따른 실행내용, 리턴값 다양화(다형성) □ 인터페이스로 구현된 API Comparable ...
댓글 없음:
댓글 쓰기