- Chapter 12: Collections
- from Beginning Java 8 Language Features: Lambda Expressions, Inner Classes, Th reads, I/O, Collections,and Streams
- Publisher: Apress
- Released: August 2014
Java 8 introduces Spliterator for parallel processing of a collection.
What is the difference between fail-fast and fail-safe iterators?
Ans : Iterators for different collections are either fail-fast or fail-safe, depending on how they react to concurrent modifications. The concurrent modification is not only a modification of collection from another thread but also modification from the same thread but using another iterator or modifying the collection directly.
Share this highlighthttp://www.safaribooksonline.com/a/beginning-java-8/10359894/