Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
1 answer
747 views

How does ConcurrentSkipListSet has Iterators that are weakly consistent? Understanding meaning of 'weakly consistent'

Fail-fast iterator iterates over collection. If collection gets modified while iterating, we get exception. Opposite applies for fail-safe, where iteration is happening on one collection, while write ...
Ana Maria's user avatar
  • 531
4 votes
1 answer
63 views

Why I'm not getting ConcurrentModificationException while removing element from ArrayList during iteration [duplicate]

I am using the following code to loop through an arraylist and then removing one element from the arraylist. Here i'm expecting ConcurrentModificationException. But didn't get that exception. ...
Naveen's user avatar
  • 346