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...

Hi, well i am unable to understand that why it is mandatory
to have same hashcode, if two objects are same?

Thanks in advance.

Answer Posted / prasanna

If two objects are equal then there hashcode must same.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are "methods" and "fields"?

970


Discuss 2D arrays.

999


What is the primitive type short?

969


Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

904


What variables are stored in stack?

914


What is the console in java?

1092


What are adapter classes?

980


What do you mean by formatting?

938


What is a Hash Table? What are the advantages of using a hash table?

1035


Which package is imported by default?

1031


What is difference between fileinputstream and filereader in java?

994


How to make a class or a bean serializable?

910


Does java map allow duplicates?

839


What is a map in java?

932


How can we create a synchronized collection from given collection?

1037