Which collection classes from Java library extends AbstractCollection class?
1. HashSet extends AbstractSet, which extends AbstractCollection.
2. ArrayList extends AbstractList, which also extends AbstractCollection.
3. PriorityQueue extends AbstractQueue, which also extends AbstractCollection.
HashMap extends AbstractMap, which is not related to AbstractCollection
4. SortedSet and NavigableMap are interfaces of collections framework.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback