Some implementation of the Iterator class throws this exception, including all those general-purpose implementations of Iterator which are provided by the JRE. This is because the result of the iteration becomes undefined with it. This exception usually comes when one is working with Java Collection classes.įor Example - It is not permissible for a thread to modify a Collection when some other thread is iterating over it. The ConcurrentModificationException occurs when an object is tried to be modified concurrently when it is not permissible. Next → ← prev ConcurrentModificationException in Java
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |