Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Can anyone explain the concurrent modification exception in java with example?
2 Respostas
+ 6
When one thread iterate the collection and other thread try to modify that collection then this exception comes.
Check here with example:
https://www.journaldev.com/378/java-util-concurrentmodificationexception
+ 5
š
°š
¹ - ÉŖ'į“ į“ŹÉŖį“ÉŖÉ“į“ŹŹŹ É¢į“į“į“
!
It's not just with multi-threads. This can occur on the same thread when attempting to add or remove an item in a list while iterating through the list.