aspose file tools
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 Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Comparison of HashMap and TreeMap" Watch "Comparison of HashMap and TreeMap" New topic

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