Multiple choice

Which interface does not extend the Collection interface?

  1. List

  2. Map

  3. Set

  4. Queue

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In the Java Collections Framework, java.util.Map is a self-contained interface that models key-value mappings and does not extend the java.util.Collection interface. In contrast, List, Set, and Queue all extend Collection.