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

Under what conditions is an object’s finalize() method invoked by the garbage collector?

1099


What is method in java with example?

998


How you can force the garbage collection?

1029


In Java list the methods that can be overridden?

1048


What is a void in java?

1256


What are java packages?

1080


What is thread safe java?

971


What is hasnext in java?

1061


Why is java so important?

1156


What is the difference between procedural and object-oriented programs?

1008


Write a function for palindrome and factorial and explain?

1137


What are the actions that can occur when a thread enters blocked state?

1110


In a container there are 5 components. I want to display the all the components names, how will you do that one?

1081


What is size_t?

1031


What are three ways in which a thread can enter the waiting state in java programming?

1214