Skip to content

Tag Archives: Java-Collections

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
HashTable is an underlying data structure where the insertion order in HashTable is not preserved, and it is based on the hashcode of keys. Duplicates… Read More
CopyOnWriteArraySet is a member of the Java Collections Framework. It is a Set that uses an internal CopyOnWriteArrayList for all of its operations. It was… Read More
Here we will be discussing out one by one individually then rolling onto the difference after having an adequate understanding of all three of them.… Read More

Start Your Coding Journey Now!