Monday, February 15, 2010

Programmer - For general cases, when either one would work, which is better to use, a hashmap or a hashtable?

Programmer Question

I've used hash tables occasionally in a couple of languages, but I just came across the Java map while browsing through some code. I checked up the differences in this SO question, which expressed it very clearly. My question is this:




  • When either one could work for you , which is better to use? Which one should you choose if you're not dealing with nulls/threads...?


  • Which one is used more often / is more standard?


No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails