Skip to content

Tag Archives: Java-Collections

Map is an interface in java. Present in java.util package. The map is the collection of keys and values and it stores the data as… Read More
The Java util package has a queue interface that defines the queue interface which has methods defined for methods in a queue. The general implementation… Read More
MultiSet is a generalization of the concept of a set. Its main idea is to allow a member of a multiset to have zero, one,… Read More
Java and C++ provide their different functionalities and their use cases. When it comes to Data structures and Algorithms Java has a special framework named… Read More
Let’s look at the problem before understanding what data aggregation is. You are given daily consumption of different types of candies by a candy-lover. The… Read More
ConcurrentHashMap is a hash table supporting full concurrency of retrievals and high expected concurrency for updates. This class obeys the same functional specifications as Hashtable… Read More
Here we will be discussing out how we can, we improve the performance while using HashMap in Java, the Importance of the hashCode() contract and… Read More
The foremost tool that strikes is the sort() method to be used for the comparator mechanism of the Collections class which sorts in the decreasing… Read More
A framework is a set of classes and interfaces which provide a ready-made architecture. In order to implement a new feature or a class, there… Read More
Linked List is a part of the Collection framework That is present in java.util package. This class is an implementation of the LinkedList data structure… Read More
Guava is a set of core libraries from Google that includes new collection types. For example, we multimap and multisets, immutable collections, a graph library,… Read More
Streams and Collectors were introduced in Java 8 introduced the concept of Streams. A Stream is a sequence, a sequence of objects. We generate Streams… Read More
Java provides two methods namely Collections.binarySearch() and contains() to find an element inside a list. Underneath the hood, contains() method uses indexOf() method to search… Read More
Collection means a set of different classes and interfaces are group together into a single unit that has similar functions are called collection and framework… Read More
A stream is a sequence of objects that supports various methods which can be pipelined to produce the desired result. Stream is used to computing… Read More

Start Your Coding Journey Now!