Oct 15, 2024
"Kunal" : 88 marks.hash("Kunal") gives a hash code, let's say 3.h(k) = k % mMap interface implementations include HashMap, LinkedHashMap, and TreeMap.HashMap is not synchronized, whereas Hashtable is synchronized and thread-safe.HashMap allows for one null key and multiple null values.put(key, value): Adds an entry.get(key): Retrieves the value for the given key.remove(key): Deletes an entry.containsKey(key): Checks if a key exists.