If you look at the infrastructure of the collection , you will see the following, but Map is not included in the list of interfaces. Although we are talking about a map, we say that it is part of the structure of the collection, so if Map is part of the structure of the collection, then why is it not in the list interfaces.
java.util
Interface Collection
All Known Subinterfaces:
BeanContext, BeanContextServices, List, Set, SortedSet
All Known Implementing Classes:
AbstractCollection, AbstractList, AbstractSet, ArrayList, BeanContextServicesSupport, BeanContextSupport, HashSet, LinkedHashSet, LinkedList, TreeSet, Vector
source
share