What is the difference between HashMap and TreeMap

Showing Answers 1 - 2 of 2 Answers

jagadish kumar

  • Jul 13th, 2005
 

Tree map is sorted where as HashMap is not sorted

  Was this answer useful?  Yes

Pattukkottai Arun

  • Jul 21st, 2005
 

The difference is that a HashMap stores all of its data inside of a hash table while a TreeMap stores all of its information in a tree.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions