The HashMap class is roughly equivalent to Hashtable, except that it is not synchronized and permits nulls.
(HashMap allows null as key and value whereas Hashtable doesn't allow)
HashMap does not guarantee order of the elements will remain constant over time.
HashMap is not synchronized and Hashtable is synchronized.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.