Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
HashMap maintains key and value pairs and often denoted as HashMap<Key, Value> or HashMap<K, V>. HashMap implements Map interface. HashMap is similar to Hashtable with two exceptions – HashMap methods are unsynchornized and it allows null key and null values unlike Hashtable. It is used for maintaining key and value mapping.
7th Aug 2016, 4:22 AM
Mohammad Reza Karimi
Mohammad Reza Karimi - avatar