[Java] hashCode 메서드
서로 다른 객체는 같은 해시코드 값을 가질수 없음 class HashCodeEx { public static void main(String[] args) { String str1 = new String("abc"); String str2 = new String("abc"); System.out.println(str1.hashCode()); System.out.println(str2.hashCode()); System.out.println(System.identityHashCode(str1)); System.out.println(System.identityHashCode(str2)); } } 96354 96354 3526198 7699183 참조 : 자바의 정석
기타/Java
2010. 7. 20. 11:18
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 알고리즘
- Reverse Engineering
- 자료구조
- java
- 개발
- 머신러닝
- 통계학습
- 안드로이드
- Algorithms
- 대학원
- 데이터 사이언스
- Data Science
- 운영체제
- Data Structure
- 리버싱
- Machine Learning
- statistical learning
- 카타르 음주
- 리버스엔지니어링
- operating systems
- 데이터 과학
- 이산수학
- 자바
- 리눅스
- android
- linux
- Discrete Mathematics
- 카타르
- 기계학습
- reversing
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함