Skip to content

Tag Archives: Java-Collections

Java 9 was released around march 2017 and In Java 9 there are some features are added in Java language and factory method for immutable… Read More
The Properties class represents a persistent set of properties. The Properties can be saved to a stream or loaded from a stream. It belongs to… Read More
As we know that a set is a well-defined collection of distinct objects. Each member of a set is called an element of the set.… Read More
  There are generally five ways of iterating over a Map in Java. In this article, we will discuss all of them and also look… Read More
The Vector class implements a growable array of objects. Vectors fall in legacy classes, but now it is fully compatible with collections. It is found… Read More
The Hashtable class implements a hash table, which maps keys to values. Any non-null object can be used as a key or as a value. To… Read More
java.util.Collections.disjoint() method is present in java.util.Collections class. It is used to check whether two specified collections are disjoint or not. More formally, two collections are… Read More
java.util.Collections.frequency() method is present in java.util.Collections class. It is used to get the frequency of a element present in the specified list of Collection. More… Read More
java.util.Collections.rotate() method is present in java.util.Collections class. It is used to rotate the elements present in the specified list of Collection by a given distance.… Read More
The method is a java.util.Collections class method. It counts the frequency of the specified element in the given list. It override the equals() method to… Read More
Prerequisite – Collections in Java 1) What is the output of the following program?  Java import java.util.*;   public class priorityQueue {     public static void… Read More
HashMap<K, V> is a part of Java’s collection since Java 1.2. This class is found in java.util package. It provides the basic implementation of the… Read More
HashMap Java.util.HashMap class is a Hashing based implementation. In HashMap, we have a key and a value pair. Even though the object is specified as key… Read More
It is a priority queue based on priority heap. Elements in this class are in natural order or depends on the Constructor we used at… Read More
The combination of two separate processes in Java is known as Double Brace Initialization in Java. As the name suggests, there are two braces {{… Read More

Start Your Coding Journey Now!