Multiple choice

Which of these statements is true?

  1. LinkedList extends List

  2. AbstractSet extends Set

  3. HashSet extends AbstractSet

  4. WeakHashMap extends HashMap

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

HashSet extends AbstractSet in Java's collections framework. LinkedList implements List (List is an interface), AbstractSet implements Set, and WeakHashMap extends AbstractMap.