This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Comparison of HashMap and TreeMap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Comparison of HashMap and TreeMap" Watch "Comparison of HashMap and TreeMap" New topic
Author

Comparison of HashMap and TreeMap

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
What are the performance difference between HashMap and TreeMap in terms of time and memory. What are the basis of choosing one over the other.
Vad Fogel
Ranch Hand

Joined: Aug 25, 2003
Posts: 504
This thread is helpful:
Map Interface by Thomas Paul
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Comparison of HashMap and TreeMap
 
Similar Threads
Collections
When we use treeMap and input duplicate Key... the overided value is displayed... why is it notin hm
Sort a Map on the <Key>.
Sorting hashmap
treemap