Tags

link:
http://www.certpal.com/blogs/2009/09/iterators-fail-fast-vs-fail-safe/

failfast:
– throw exception or fail immediately when the internal structure is changed during iteration

failsafe:
– make a snapshot/copy of the internal structure then performance the iteration

Advertisements