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





how hashmap works internally in java

Fig. 2: How HashMap works internally in Java


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.