0 votes
in Java by

As we know that Hashmap is not synchronized. So, can we use Hashmap in multithreaded environemnt? what will be the behaviour of hashmap?

1 Answer

0 votes
by (3.8k points)


HashMap is not synchronized, so, it is not thread safe.  You can not do concurrent modification in HashMap. If you will do concurrent modification in HashMap then you will get ConcurrentModificationException .

Share:- Whatsapp Facebook Facebook

Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.