Multiple choice

What is the root interface of the Collections API?

  1. Collections

  2. Throwable

  3. List

  4. Collection

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

The Collection interface (java.util.Collection) is the root interface of the collection hierarchy, from which List, Set, and Queue inherit. Note that 'Collections' is a utility class containing static methods, not an interface.