As in HashMap there are buckets internally to hold key value pairs.
For the case of keys which have same hash code.
For instance hash code of "abcdef" and "abcdfG" is same.
map.put("abcdef", 1);
map.put("abcdfG", 2);
When they are put in hash map Entry object gets created where both are placed in same bucket and next of one Entry points to other one.
The question is how will get behave ? When we do map.get("abcdef"); will it give 1 or 2