Skip to content

Tag Archives: Java-Collections

ArrayBlockingQueue class is a member of the Java Collection framework. ArrayBlockingQueue is a bounded blocking queue. The term bounded, means that the size of the… Read More
In Java, objects are stored dynamically using objects. Now in order to traverse across these objects is done using a for-each loop, iterators, and comparators.… Read More
Primitive types are the most basic data types available within the Java language. Such types serve only one purpose — containing pure, simple values of… Read More
The enumeration in java is one of the predefined interfaces, whose object is used for retrieving the data from collections framework variable(like Stack, Vector, HashTable,… Read More
The ArrayDeque in Java provides how to use resizable-array additionally to the implementation of the Deque interface. It is also referred to as Array Double… Read More
Vector is similar to arrays but is growable also, or we can say no fixed size is required. Previously vector was a part of legacy… Read More
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
TreeSet is one of the most important implementations of the SortedSet interface in Java that uses a Tree for storage. The ordering of the elements… Read More
HashMap in java is a class that is a part of the java collection. It implements the Map interface of java. It stores the data… Read More
Hashing is a technique that is used to uniquely identify a specific object from a group of similar objects. Suppose an object is to be… Read More
Concatenating two lists means merging two lists into a single list. Consider the given lists: LIST 1LIST 2LIST AFTER CONCATENATION There are several methods to… Read More
TreeSet is an implementation of the SortedSet interface in Java that uses a Tree for storage. The ordering of the elements is maintained by a… 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
The ConcurrentLinkedQueue class in Java is a part of the Java Collection Framework. It belongs to java.util.concurrent package. It was introduced in JDK 1.5. It… Read More
The grouping of objects in a single unit is called a collection. For example Array, Lists, Hashsets, etc.  Data can be added from a specified… Read More