• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why is HashTable considered historic?  RSS feed

 
Romario Dominic
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any idea why HashTable is considered historic?It seems like HashMap is a better way to do things.

Thanks
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
historic -vs- historical
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@jeff

i'm not a english native speaker either, so i apologize in advance for any unvolountary funny words i use.

@romario

Hashtable (small 't'!) is completly threadsafe. usually this is an extra overhead you don't need (and don't want to pay), so HashMap will be the better implementation. Same goes (at least) for Vector / ArrayList, StringBuffer / StringBuilder, ...

jan
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jan Groth:
@jeff
I'm not a english native speaker either, so i apologize in advance for any unvolountary funny words i use.


I almost forgot the third term: hysterical
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Romario Dominic:
Any idea why HashTable is considered historic?


Listen my children, and you shall hear
of the synchronized Hashtables of Paul Revere...
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!