1.

Which of these class object uses the key to store value?(a) Dictionary(b) Map(c) Hashtable(d) All of the mentionedThis question was posed to me in an international level competition.I need to ask this question from Java.util in portion java.util – The Collections Framework of Java

Answer»

Right choice is (d) All of the mentioned

To explain I WOULD say: DICTIONARY, Map & HASHTABLE all implement Map interface HENCE all of them uses keys to STORE value in the object.



Discussion

No Comment Found

Related InterviewSolutions