Tag Archives: Java-HashMap

HashMap in java is a class that is a part of the java collection. It implements the Map interface of java. It stores the data… Read More
HashMap is a non synchronized collection class. If we want to perform thread-safe operations on it then we must have to synchronize it explicitly. In… Read More
Data Structures are a boon to everyone who codes. But is there any way to convert a Data Structure into another? Well, it seems that… Read More
Map interface present in java.util package represents a mapping between a key and a value. The Map interface is not a subtype of the Collection… Read More
Given two arrays A[] and B[] of N unique elements, the task is to find the maximum number of matched elements from the two given… Read More
A lambda expression is one or more line of code which works like function or method. It takes a parameter and returns the value. Lambda… Read More
In this article, we will learn how to compare two HashMap objects in Java. In java.util package HashMap class is present. HashMap is used to… Read More
HashMap<K, V> is a Java Collection and is a part of java.util package. It provides the basic implementation of the Map interface of Java. It… Read More
HashMap is similar to the HashTable, but it is unsynchronized. It allows to store the null keys as well, but there should be only one… Read More
HashMap is part of the Collection’s framework of java. It stores the data in the form of key-value pairs.  These values of the HashMap can… Read More
We will look into the Method that allows us to read the HashMap Text from the file or how we can De-serialised the File De-Serialization:… Read More
The HashMap class in Java implements the Serializable interface so that its objects can be written or serialized to a file using the ObjectOutputStream. However,… Read More
Array List can be converted into HashMap, but the HashMap does not maintain the order of ArrayList. To maintain the order, we can use LinkedHashMap… Read More
Java HashMap is an implementation of the Map interface which maps a Value to a Key which essentially forms an associative pair wherein we can… Read More
HashMap in Java is the realization of the Hash Table data structure of sorts. It is composed of Key and Value pairs which are symbolically… Read More