geeta vemula wrote:Here i thought if hashcode() is not overridden then it will store all the values in the same bucket.
No! It will just do the opposite. Since the hashCode method is not overridden, so it will place all values in different buckets as hashCode method of Object class mostly returns unique values for objects...