In real time project, when we go for HashMap
and TreeMap
?
In what condition, we choose both?
There are also different data structure in Java Collection
, so, what's the reason to use TreeMap
or HashMap
? and any short example?
In real time project, when we go for HashMap
and TreeMap
?
In what condition, we choose both?
There are also different data structure in Java Collection
, so, what's the reason to use TreeMap
or HashMap
? and any short example?