A HashMap and the ConcurrentModificationException #java #shorts #coding #airhacks

preview_player
Показать описание
A possible cause for:

and a solution with:

Java used in this short: openjdk version "21" 2023-09-19 LTS

#airhacks
Рекомендации по теме
Комментарии
Автор

Does this apply to fetching values of same/different keys via multiple threads as well?

I_m_always_learning
Автор

Only when I try to write into a hashmap?

smartybln
visit shbcf.ru