Oracle says
Note that Iterator.remove is the only safe way to modify a collection during iteration; the behavior is unspecified if the underlying collection is modified in any other way while the iteration is in progress.
Could this mean that even if multiple threads are iterating together over the same collection's fail-fast implementation's (Vector,Hashmap,ArrayList,HashSet) object carry out iterator.remove() there would be no ConcurrentModificationException thrown?
ConcurrentModificationException, It is not generally permissible for one thread to modify a Collection while another thread is iterating over it.@MihirJust a little bit clarity. What if the "modification" is iterator.remove() by one thread when it is traversing and the other thread executes the same while iterating during the iteration of the former thread?