Exforsys

Online Training

Difference between hashcode() and equals()...

This is a discussion on Difference between hashcode() and equals()... within the Java forums, part of the Programming Talk category; I have tried so many times to find the difference...but not getting a satisfactory explanation.... can anybody explain with ...


Go Back   Exforsys > Programming Talk > Java

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-26-2007, 05:07 AM
Junior Member
 
Join Date: Sep 2007
Posts: 3
singhsn is on a distinguished road
Difference between hashcode() and equals()...

I have tried so many times to find the difference...but not getting a satisfactory explanation.... can anybody explain with a good example??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-07-2008, 04:47 AM
Junior Member
 
Join Date: Mar 2008
Location: bangalore
Posts: 9
sampra is on a distinguished road
hashcode is an integer number which is provide to each object by jvm note that this is not address of object but for convencing internally they use

equals() is used to compare the objects it returns boolean value
if any doubt then pls ask
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:31 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.