Skip to content

Tag Archives: Java-Collections

ArrayList is a part of collection framework and is present in java.util package. It provides us with dynamic arrays in Java. Though, it may be… Read More
The Queue interface present in the java.util package and extends the Collection interface is used to hold the elements about to be processed in FIFO(First… Read More
The Arrays class in java.util package is a part of the Java Collection Framework. This class provides static methods to dynamically create and access Java… Read More
TreeSet provides an implementation of the SortedSet Interface and SortedSet extends Set Interface. It behaves like simple set with the exception that it stores elements… Read More
A PriorityQueue is used when the objects are supposed to be processed based on the priority. It is known that a Queue follows the First-In-First-Out… Read More
The HashSet class implements the Set interface, backed by a hash table which is actually a HashMap instance. No guarantee is made as to the… Read More
Any group of individual objects which are represented as a single unit is known as the collection of the objects. In Java, a separate framework… Read More
In C++, we have std::pair in the utility library which is of immense use if we want to keep a pair of values together. We… Read More
‘Iterator’ is an interface which belongs to collection framework. It allows us to traverse the collection, access the data element and remove the data elements… Read More
HashMap and TreeMap are part of collection framework. HashMap java.util.HashMap class is a Hashing based implementation. In HashMap, we have a key and a value… Read More
Let us discuss the concept of the arrays and ArrayList briefly in the header to incorporate the understanding in java programs later landing onto the… Read More
The set interface is present in java.util package and extends the Collection interface is an unordered collection of objects in which duplicate values cannot be… Read More
Linked List is a part of the Collection framework present in java.util package. This class is an implementation of the LinkedList data structure which is… Read More
  Java Collection framework provides a Stack class that models and implements a Stack data structure. The class is based on the basic principle of… Read More