Java Interview Questions-3 - How to remove ConcurrentModificationExpection from hash map

preview_player
Показать описание
How to resolve concurrent modification exception of hash map.
Рекомендации по теме
Комментарии
Автор

Very nice video. Just wanted to know can we say it as a multi threaded env. or it is in single thread only. because concurrent modification exception occurs in multi threaded env. as written in books.

TheChi
Автор

Your example is single thread. Why bother use multi-thread version of HashMap (ConcurrentHashMap)? Any other solutions?

ericshiau
welcome to shbcf.ru