
what is the difference between hashmap and treemap?

Hi Friend,
Difference:
1)Hashmap is an unordered datastructure while Treemap is an ordered datastructure.
2)Hashmap uses hashing for storage while Treemap uses tree.
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.