HashMap vs TreeMap
- HasbMap based on hashtable.
- HashMap dont have natural order, but Tree Map has. such as: treeMap.keySet() is incresed set of number // treeMap.descendingKeySet(), is decresed set of number
- HashMap and TreeMap both allowe duplicated number. such as: hashMap.put( 1, “idiots”) then hasMap.put(1, “brilliant”), the second time put() will overwrite the old one.