InterviewSolution
Saved Bookmarks
| 1. |
Which of these is the interface of legacy is implemented by Hashtable and Dictionary classes?(a) Map(b) Enumeration(c) HashMap(d) HashtableI have been asked this question in an interview.My question comes from Java.util in portion java.util – The Collections Framework of Java |
|
Answer» RIGHT CHOICE is (a) Map For explanation: Dictionary, Map & HASHTABLE all IMPLEMENT Map interface HENCE all of them uses keys to store value in the object. |
|