Saturday 16 March 2013

What is the difference between HashMap and TreeMap?


What is the difference between HashMap and TreeMap? 
Both Hashmap and Treemap are data structures, which holds the values of in the form of key -value pairs. But difference is, hashmap is a unordered data structure, treemap is ordered data structure. Both does not allow duplicate values.


Blog Author: Vijay Kumar

Go to: Coding Problem Solutions

No comments: