Friday, 22 April 2016

HashMap vs. Hashtable


HashMap vs. Hashtable
  • HashMap allows null keys and values.
  • Hashtable doesn’t allow null keys or null values.
  • Hashtable is synchronized.
  • HashMap not.
  • HashMap provides set of its keys for iteration
  • Hashtable provides Enumeration of its keys

No comments:

Post a Comment

Note: only a member of this blog may post a comment.