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

What are uses of Hash Code?

Answer Posted / suraj kumar

1. When equals() method is invoked on java objects to check
their equality, then the hash code of objects are checked. The
two objects having same hash code are equal.
2. The objects having distinct hash code in HashTable
increases the performance of HashTable. Hence, the objects
should be checked its distinct hash code before storing into
HashTable.

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to sort numbers in java without array?

939


What is the meaning of I ++ in java?

1121


Is hashmap thread safe?

943


What is difference between equal and == in java?

912


What is function and method in java?

913


how to run ecllipse with jettyserver for windows environment using batch file

2019


What is formatted output?

907


What is get () in java?

984


What is the difference between heap and stack memory?

1150


How do you find the absolute value?

1003


What is the syntax and characteristics of a lambda expression?

994


Explain differences between collection api and stream api?

1101


Will set allow duplicates in java?

932


Why is java so popular?

1066


What are variable names?

920