While adding element into ArrayList using Multithreading, sometimes it give ConcurrentModificationException and sometimes not?
Iterating through a Collection, avoiding ConcurrentModificationException when removing objects in a loop