Difficulty: Easy
Correct Answer: java.util.Map
Explanation:
Introduction / Context:The java.util.Hashtable class is one of the legacy collection classes in Java. Understanding which interfaces it implements is key to using it correctly in modern Java programming.
Given Data / Assumptions:
Concept / Approach:Hashtable implements the Map interface, which defines methods for mapping keys to values without duplicates.
Step-by-Step Reasoning:
Hashtable extends Dictionary (legacy) but implements Map.Map ensures unique keys, allows value lookup, insertion, and removal.List and Collection are not correct because they do not define key-value mapping.Why Other Options Are Wrong:
Final Answer:java.util.Map
Discussion & Comments