Wednesday, 18 November 2015

Difference b/w HashMap and ConcurrentHashMap


S.No
HashMap
ConcurrentHashMap
1
It is not a thread safe
It is a thread safe
2
Performance is high
Performance is low
3
It allows only one null key
It doesn't allow null key and null value

No comments:

Post a Comment