Why this code doesn't throw ConcurrentModificationException when multiple threads work on same arraylist at the same time using iterator

前端 未结 0 1558
无人及你
无人及你 2020-12-13 23:18

Here 2 threads work on same arraylist and one thread read the elements and another thread remove a specific element . I expect this to throw ConcurrentModificationExce

相关标签:
回答
  • 消灭零回复
提交回复
热议问题