Answers

Question and Answer:

  Home  Java Software Engineer

⟩ Explain me what is the difference between HashMap and ConcurrentHashMap?

ConcurrentHashMap is thread-safe; that is the code can be accessed by single thread at a time while HashMap is not thread-safe. ConcurrentHashMap does not allow NULL keys while HashMap allows it.

 136 views

More Questions for you: