please correct me if i am wrong, but the hashCode method is supposed to generate an integer value which is used to IDENTIFY buckets in a Hashtable or a Map in general? Or is it the key which is used to locate the buckets?
i'm reading it in books but am having abit of trouble, can someone plz explain this to me in THEIR OWN words. Thanks for your time.
The hashcode generate an int that identify in which bucket the object will be and if there are more then one object in the bucket, you are going to use the equals method to find the exactly object that you are looking for.