Skip to content

Tag Archives: Java-Collections

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
TreeSet is one of the most important implementations of the SortedSet interface in Java that uses a Tree for storage. The TreeSet implements a NavigableSet… Read More
TreeMap in Java is used to implement Map interface and NavigableMap along with the AbstractMap Class. The map is sorted according to the natural ordering… Read More
Since Vector class and ArrayList class both are part of Java Collections, ie Collection framework, so both of these classes can use methods available to… Read More