🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #12455

Re: ���ڴ�ֵ���Ǵ����õĽ�һ������

#12455
From: NUE
Date: Thu, 29 Jul 2004 03:04
20 lines
1889 bytes
As much as is reasonably practical, the hashCode method defined by class 
Object does return distinct integers for distinct objects. (This is 
typically implemented by converting the internal address of the object into 
an integer, but this implementation technique is not required by the JavaTM 
programming language.) 

 �� �� xeon.bbs@bbs.nankai.edu.cn (98CS~ ��è~������
������) �Ĵ������ᵽ: �� : ��������ڴ��߼���ַ������������object��hashCode.
: ��Object��Ϊ��,toString()����ô�����:
:     public String toString()
:     {
:         return getClass().getName() + "@" + Integer.toHexString(hashCode());
:     }
: �ٷ��ĵ�����hashCode()���������:
: 1.Whenever it is invoked on the same object more than once during an execu
: tion of a Java application, the hashCode method must consistently return
:  the same integer, provided no information used in equals comparisons on
: .................������ʡ�ԣ�
--
�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 219.206.224.14]
Technical Details
Message-ID: <4DPYc5$9SJ@bbs.sjtu.edu.cn>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news3.optonline.net!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!netnews.sdu.edu.cn!SJTU

Show Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,c26098b9a66ce846
X-Google-Attributes: gidf6cb0,public
X-Google-Language: ENGLISH,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news3.optonline.net!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!netnews.sdu.edu.cn!SJTU
From: nue.bbs@bbs.sjtu.edu.cn (NUE)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: ���ڴ�ֵ���Ǵ����õĽ�һ������
Date: 29 Jul 2004 03:04:17 GMT
Organization: ��ˮ˼Դ
Message-ID: <4DPYc5$9SJ@bbs.sjtu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1091070245.A