What is the difference between HashMap and Hashtable?
Page 1 of 1
What is the difference between HashMap and Hashtable?
HashMap
HashMap is not synchronized.
HashMap can contain one null key and multiple null values.
Hashtable
Hashtable is synchronized.
Hashtable cannot contain any null key or null value.
HashMap is not synchronized.
HashMap can contain one null key and multiple null values.
Hashtable
Hashtable is synchronized.
Hashtable cannot contain any null key or null value.
Similar topics
» What is hash-collision in Hashtable and how it is handled in Java?
» What is the difference between HashSet and HashMap?
» What is the difference between HashMap and TreeMap?
» What is the difference between HashSet and HashMap?
» What is the difference between HashMap and TreeMap?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum