Technical Concepts
Java Collections Framework
Interview Questions Java Collections Framework What is a “collection”? Name the main interfaces of the JCF and their implementations. Arrange the following interfaces in a hierarchy: List, Set, Map, SortedSet, SortedMap, Collection, Iterable, Iterator, NavigableSet, NavigableMap. Why is Map not a Collection, while List and Set are Collection? What is the difference between java.util.Collection and java.util.Collections? What is “fail-fast behavior”? What is the difference between fail-fast and fail-safe? Provide examples of iterators that implement fail-safe behavior.