Java Tutorial

Java.util.ConcurrentModificationException Examples And Resolution

When you operate a java collection object use iterator, you may always meet java.util.ConcurrentModificationException error. It is because the java collection object has been changed while others still use the method iterator.next() to loop in it. Below is just an example code that can throw concurrent modification exceptions.

Java.util.ConcurrentModificationException Examples And Resolution Read More »