Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

if two references are having same hash codes,is that means
those are refering to same object?

Answer Posted / dheerendra

If two objects are same then on equals obj1.equals(obj2)
return true as well as the hashCode will also be same but if
the hashCode of two objects are same then it is not sure
that objects would point to same reference.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State some situations where exceptions may arise in java?

1005


How do we access static members in java?

1060


What is array command?

1094


What is bean? Where it can be used?

1024


What is the purpose of using break in each case of switch statement?

962


What is binary search in java?

948


What is externalizable?

1014


Does hashset allow duplicates in java?

1053


Is boolean a wrapper class in java?

1002


What are strings in physics?

964


How will you get the platform dependent values like line separator, path separator, etc., ?

957


How are observer and observable used in java programming?

967


What is update method called?

1092


Why java is considered dynamic?

1113


Which class is the superclass of all classes?

1057