Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 27 Aug 2012 20:58:45 -0500 Date: Mon, 27 Aug 2012 18:58:45 -0700 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: hashCode References: <563f186a-edb3-4311-ae48-3af7decfce2c@googlegroups.com> <6ac6c252-c370-4f74-b29d-ce5368019977@googlegroups.com> <502598d0$0$287$14726298@news.sunsite.dk> <5028191b$0$290$14726298@news.sunsite.dk> <50317b03$0$281$14726298@news.sunsite.dk> <503bfd0f$0$282$14726298@news.sunsite.dk> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 12 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.200.172 X-Trace: sv3-oKheI22g+V5dXdMOtGzAZ18dAYCZdDxTYabYcI1Nylt+lduTL/YA37ONqpqIoy7wpH6DmQSTa3d+NOn!8llyyZmzbRwUWdhoo5KdlcDCwCzkdrwbnTZvtzk0Pe2L9yjq6mYGa/J+dcmdD4Dl/8ibWXKaENVc!yMPrNIRPS/ldzGq0DT5kx8ubkyKEbIfWEn/ZLo049P1Q5Go= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1930 Xref: csiph.com comp.lang.java.programmer:18345 On 8/27/2012 5:03 PM, markspace wrote: ... > For example, in C, one can always hash based on memory address. In Java > we don't have that option, so hashcode() takes the place of the > intrinsic property of an address. ... In Java we have System.identityHashCode() which provides an address-like hash code for any object. Patricia