Skip to content

Tag Archives: Java-Collections

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
Hash Tables(similar to tables in general) provide a subset of the dynamic set operations. Usually, a set of keys are mapped with some values based… Read More
Reversing a list means after reversing the list, the first element should be swapped with the last element, the second element should be swapped with… Read More
The Vector class implements a growable array of objects. Vectors basically fall in legacy classes but now it is fully compatible with collections. It is… Read More
LinkedHashMap class extends HashMap and maintains a linked list of the entries in the map, in the order in which they were inserted. This allows… Read More
It is the implementation class of List Interface. It allows duplicated objects/elements and as well as maintains the insertion order. You can get the element… Read More
EnumSet and TreeSet both are the classes defined inside the collection framework. But there are few differences exists between them. In this article, we have… Read More
LinkedHashSet is used to store elements in which order they were inserted. When the iteration order is needed to be maintained this class is used.… Read More
ArrayList is a resizable array implementation in java. ArrayList grows dynamically and ensures that there is always a space to add elements. The backing data… Read More
ArrayList is a part of the Collection framework and is present in java.util package. It provides us with dynamic arrays in Java. Though, it may… Read More

Start Your Coding Journey Now!