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

Write a program to search a number in the given list of numbers.

1025


What is the properties class in java programming?

992


What is super constructor?

990


What are the differences between processes and threads?

1060


What is an immutable object?

1091


Which collection is best for sorting in java?

1120


What is java and their uses?

1025


What is a data structure java?

992


Write the algorithm to check the number non-leaf nodes in a tree.

1058


How to pass arraylist to stored procedure in java?

1150


Is null keyword in java?

933


Why is whitespace important?

1076


Explain purpose of sleep() method in java?

1109


Is there any way to skip finally block of exception even if some exception occurs in the exception block?

1063


What technique can be employed to compare two strings?

1092