Skip to content

Tag Archives: Java-Collections

The IdentityHashMap implements Map interface using Hashtable, using reference-equality in place of object-equality when comparing keys (and values). This class is not a general-purpose Map… Read More
Remember while we were converting octal to decimal we were taking 3 binary digits at a time. A similar approach will be used where here… Read More
ConcurrentSkipListMap API is based on the implementation of the ConcurrentNavigableMap. This map is sorted according to the natural ordering of its keys or by a… Read More
The LinkedHashMap is just like HashMap with an additional feature of maintaining an order of elements inserted into it. HashMap provided the advantage of quick… Read More
Vector is a child interface of collection. If we want to represent a group of the individual objects as a single entity where duplicates are… Read More
Map Interface is present in Java.util package, which provides mainly three methods KeySet(),entrySet() and values(). These methods are used to retrieve the keys of the… Read More
The JDK 9 has added static factory methods like of() onto basic Collection interfaces, to create unmodifiable collection objects. These are the same as the… Read More
As we know that the HashSet contains only unique elements, ie no duplicate entries are allowed, and since our aim is to remove the duplicate… 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.… Read More
The LinkedHashSet is an ordered version of HashSet that maintains a doubly-linked List across all elements. When the iteration order is needed to be maintained,… Read More
ConcurrentHashMap class obeys the same functional specification as HashTable and includes all the versions of methods corresponding to each method of a HashTable. A HashTable… 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.… Read More
The Vector class is found in java.util package and it implements List interface. The Vector class is included in the java collection framework from Java… Read More
Map Interface is present in Java.util package, which provides mainly three methods KeySet(),entrySet() and values(). These methods are used to retrieve the keys of the… 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