Is HashMap in Java collision safe
- by changed
Hi
I am developing a parser that needs to put key value pairs in hashmap.
But a key can have multiple values which i can do in this way
HashMap<String,ArrayList<String>> .
But what happens if number of keys are very large and it start matching with other key's hashcode.
Will that rewrite previous key's value ?
thanks
-devSunday