hashCode() used?
One of hundreds of answers available with our premium content service.
A: The hashCode() method is used in hash-based data stores to get a "nearly unique" identifier for each object. The hash code is used to speed up the search process, so should have a high probability of being different from any other instance. It is possible for two hash codes to be the same, so the equals method is used to make an exact match.
… full answer hidden
Premium members click below for full answer
When is hashCode() used?