This is my hashmap :
HashMap hashMapTest = new HashMap();
and I insert Date.getTime()
into this
Following are 4 common implementation of Map interface in Java,
HashMap: No ordering & No preservation of insertion order on keys/values
LinkedHashMap: Preserves the insertion order
TreeMap: Ordered by the key
HashTable: Unlike HashMap, it is synchronized
Refer here for better understanding with examples.