Discussion :: Objects and Collections
-
Which collection class allows you to access its elements by associating a key with an element's value, and provides synchronization?
Answer : Option D
Explanation :
Hashtable is the only class listed that provides synchronized methods. If you need synchronization great; otherwise, use HashMap, it's faster.
Be The First To Comment