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

Can a class extends itself in java?

1072


What do you mean by byte code?

1052


What is default size of arraylist in java?

1226


What is an interoperable application in java ?

1060


What is the base class of all exception classes in java?

1110


What does indexof mean?

1109


What is difference between classpath and path variables in java?

1261


How do you achieve singleton?

1031


How many types of array are there?

1054


How do you sort an array in java?

1047


How do you create an array in java?

1036


How is string stored in java?

1123


What isan abstract class and when do you use it?

1672


Difference between string s= new string (); and string s = "abv";?

1261


Explain the differences between static and dynamic variables?

1204