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 / nalluri

Hi,

No. Never same hash code to 2 same objects. every object is
having it's own hash code.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is gui programming?

955


What is the difference between class & object?

951


Which methods are used during serialization and deserialization process?

944


Can we override final method?

940


Can an integer be a string?

983


Why vector is used in java?

964


What are basic data types?

1035


What is the purpose of the main method?

944


Describe the syntax of multiple inheritance? When do we use such an inheritance?

1027


Can we overload final method in java?

931


Is the empty set a singleton?

910


How to avoid memory leak in java?

1076


How we can declare a static variable?

1064


How do I know if java is installed?

1014


Explain some best practices you would apply while using collection in java?

980