🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#12459
From: 98CS~��è~�����Կ�����
Date: Thu, 29 Jul 2004 03:35
30 lines
3045 bytes
��û˵���˵������ȫ�����,ֻ��˵���˵������Object������ȷ��.
������಻һ����ȷ.

Object���hashCode()��ʹ�õ�native����,Ӧ���Ƿ�������ָ���ַ,
������������hashCode()�Ͳ�һ����.

����System.out.print( object )��һ���ܿ����ڴ��ַ,
��ο��ö����toString()��������hashCode.

�� �� nue.bbs@bbs.sjtu.edu.cn (NUE) �Ĵ������ᵽ: ��
: 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()
: :     {
: .................������ʡ�ԣ�

--
        ��                                                              ��
������������    What's the meaning of being lonely?                       
        ������                                      ����xeon              
        ���ਁ������������������������������������������������������������     
        ����                                          jowtte@sina.com.cn  
        ��                                                                
�� ��Դ:���Ұ��Ͽ�վ nkbbs.org��[FROM: 202.108.245.163] 
Technical Details
Message-ID: <4DPZPA$9aR@bbs.nankai.edu.cn>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!nntp-server.pubsub.com!maily.cic.tsinghua.edu.cn!news2.happynet.org!NanKai

Show Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,d356ce699e5f20c7
X-Google-Attributes: gidf6cb0,public
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!nntp-server.pubsub.com!maily.cic.tsinghua.edu.cn!news2.happynet.org!NanKai
From: xeon.bbs@bbs.nankai.edu.cn (98CS~��è~�����Կ�����)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: ���ڴ�ֵ���Ǵ����õĽ�һ������
Date: 29 Jul 2004 03:35:53 GMT
Organization: �Ұ��Ͽ�վ
Message-ID: <4DPZPA$9aR@bbs.nankai.edu.cn>
X-Filename: Java/M.1091071930.A
Lines: 30