Multiple choice

Which of the following classes implement the Map interface? (Choose all that apply)

  1. HashMap

  2. ArrayMap

  3. Hashtable

  4. TreeMap

Reveal answer Fill a bubble to check yourself
A,C,D Correct answer
Explanation

HashMap, Hashtable, and TreeMap are all standard classes in the Java Collections Framework that implement the java.util.Map interface. ArrayMap is not a standard JDK class as it is part of Android utilities.