There are two objects a and b with same hashcode. I am inserting
these two objects inside a hashmap.
hMap.put(a,a); hMap.put(b,b);
where a.hashCode()==b.hashCode()
Now tell me how many objects will be there inside the hashmap?
these two objects inside a hashmap.
hMap.put(a,a); hMap.put(b,b);
where a.hashCode()==b.hashCode()
Now tell me how many objects will be there inside the hashmap?