Home / Java Techs / Java / HashMap class in Java

HashMap class in Java

Print Friendly, PDF & Email

This text aims to introduce HashMap and how to use it in Java programs. In the series of Map involved articles,

HaspMap is implemented from Map interface and inherited from AbstractMap class (as shown in Fig. 1).

The Map Hierarchy

Fig. 1: The Map Hierarchy

The Map Hierarchy

Fig. 1: The Map Hierarchy

HashMap works on the principle of Hashing.

 

HashMap vs. TreeMap vs. Hashtable vs. LinkedHashMap

https://www3.ntu.edu.sg/home/ehchua/programming/java/J5c_Collection.html

https://dzone.com/articles/an-introduction-to-the-java-collections-framework

https://www.karambelkar.info/2012/06/java-1.7-collections—uml-class-diagrams/

https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html

how hashmap works internally in java

Fig. 2: How HashMap works internally in Java

comments

About Nguyen Vu Ngoc Tung

I love making new professional acquaintances. Don't hesitate to contact me via nguyenvungoctung@gmail.com if you want to talk about information technology, education, and research on complex networks analysis (i.e., metabolic networks analysis), data analysis, and applications of graph theory. Specialties: researching and proposing innovative business approaches to organizations, evaluating and consulting about usability engineering, training and employee development, web technologies, software architecture.