File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
subject: Comparison of HashMap and TreeMap
It's not a secret anymore!