BT Group Interview Question

Q. [ F2F] What is concurrent hash map? Why is it needed when we already have Synchronized hash map?

Interview Answer

Anonymous

Jan 13, 2016

During iteration, hashmap takes a lot time for another operations to happen as it blocks the hashmap during iteration while in concurrent it blocks only a segment and rest portion is free to perform operations . so if size is big ,performance is issue in hashmap .

1