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 is the use of parseint in java?

1025


What is use of super keyword in java?

1023


What super () does in java?

908


How to make a class or a bean serializable?

974


Can we override constructor?

1025


What are the elements of java?

1010


Can we sort hashmap in java?

959


Difference between string, stringbuffer and stringbuilder?

1027


What methods are used to get and set the text label displayed by a button object?

1016


What is numeric data type?

989


If an object is garbage collected, can it become reachable again?

997


What is maximum size of arraylist in java?

1031


What does the “static” keyword mean? Can you override private or static method in java?

1100


What does the append?

1001


What is compareto?

1040