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.
No comments:
Post a Comment