Multiple choice

Which of the following is not an interface of Java Collection Framework?

  1. Set

  2. List

  3. Queue

  4. HashSet

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

A HashSet is a class and not an interface. The interface Set is implemented in a HashSet class.