Java HashMap

How to Synchronize HashMap in Java

Last Updated:

Java HashMap is not synchronized by default. If we add/remove key-value pairs from a HashMap in a concurrent application where multiple threads are adding and …

How to join or merge two hashmaps in Java

Last Updated:

Learn to merge two hashmaps in Java. We will learn to join hashmaps in two cases – ignore duplicate keys (overwrite values) or handle duplicate …

How to compare two hashmaps in Java

Last Updated:

Learn to compare two hashmaps in Java by keys, values and key-value pairs. Also learn to compare while allowing or restricting duplicate values. 1. Compare …

How HashMap works in Java

Last Updated:

Learn how hashmap works internally in java with example. Learn the hashmap internal implementation analysis, collision resolution and Java 8 hashmap update.

HowToDoInJava

A blog about Java and its related technologies, the best practices, algorithms, interview questions, scripting languages, and Python.