posted 22 years ago
ques from JQplus Sample exam:
Your application needs to load a set of key value pairs from a database table which never changes. Multiple threads need to access this information but none of them changes it.
Which class would you use to store such data?
The options are Hashtable,HashMap,TreeMap,Set,List
and 2 choices
I think the option should be HashMap and HashTable but can we just use HashMap as we do not need to synchronize this so we don't need HashTable.