File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HashMap vs. Hashtable

 
paul wheaton
Trailboss
Pie
Posts: 21180
Firefox Browser IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the dif?
 
paul wheaton
Trailboss
Pie
Posts: 21180
Firefox Browser IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
found the answer.
HashMap is not synchronized, Hashtable is.
HashMap allows nulls, Hashtable doesn't.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic