Skip to content

Tag Archives: Java-Collections

HashTable is an underlying data structure where the insertion order in HashTable is not preserved, and it is based on the hashcode of keys. Duplicates… Read More
CopyOnWriteArraySet is a member of the Java Collections Framework. It is a Set that uses an internal CopyOnWriteArrayList for all of its operations. It was… Read More
Here we will be discussing out one by one individually then rolling onto the difference after having an adequate understanding of all three of them.… Read More
TreeSet is one of the most important implementations of the SortedSet interface in Java that uses a Tree for storage. The TreeSet implements a NavigableSet… Read More
TreeMap in Java is used to implement Map interface and NavigableMap along with the AbstractMap Class. The map is sorted according to the natural ordering… Read More
Since Vector class and ArrayList class both are part of Java Collections, ie Collection framework, so both of these classes can use methods available to… Read More
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

Start Your Coding Journey Now!