For given code
The following code does not throw ConcurrentModificationException and run fine , I perfectly understand as ConcurrentModificationException is thrown when a
thread iterating over it AND
modifying it.
By iterating I means specifically using Iterator not using for loops
But here , it throws ConcurrentModificationException. I dont know why ?
Regards
naveen