I have created hash map and when I debug it I saw that I have duplicte keys.
I didnt override the hashCode() & equals(Object obj) in the key - Object1
and i wonder how will it affect the performance of the map search?
private HashMap<Object1,Object2> map = new HashMap<Object1,Object2>();