Guide to ConcurrentModificationException

Guide to ConcurrentModificationException

Introduction If you run the following code: There are chances you will get the following exception: I said “there are chances” because you run the same code repeatedly, and sometimes there is no exception thrown. So, what is ConcurrentModificationException and when you might encounter it. The JDK’s said: This exception may be thrown by methods … Read more