Yearly Archives

Java.util.Dictionary Class in Java

util.Dictionary is an abstract class, representing a key-value relation and works similiar to a map. Given a key you...

Java.util.Dictionary Class in Java

util.Dictionary is an abstract class, representing a key-value relation and works similiar to a map. Given a key you...

IdentityHashMap class in Java

The IdentityHashMap implements Map interface using Hashtable, using reference-equality in place of object-equality when comparing keys (and values). This...

IdentityHashMap class in Java

The IdentityHashMap implements Map interface using Hashtable, using reference-equality in place of object-equality when comparing keys (and values). This...

LinkedHashMap in Java

The LinkedHashMap is just like HashMap with an additional feature of maintaining an order of elements inserted into it....

LinkedHashMap in Java

The LinkedHashMap is just like HashMap with an additional feature of maintaining an order of elements inserted into it....

Immutable Map in Java

ImmutableMap, as suggested by the name, is a type of Map which is immutable. It means that the content...

Immutable Map in Java

ImmutableMap, as suggested by the name, is a type of Map which is immutable. It means that the content...

WeakHashMap class in Java

WeakHashMap is the Hash table based implementation of the Map interface, with weak keys. An entry in a WeakHashMap...

WeakHashMap class in Java

WeakHashMap is the Hash table based implementation of the Map interface, with weak keys. An entry in a WeakHashMap...

SortedMap in Java

SortedMap is an interface in the collection framework. This interface extends the Map interface and provides a total ordering...

SortedMap in Java

SortedMap is an interface in the collection framework. This interface extends the Map interface and provides a total ordering...

HashMap in Java with Examples

HashMap<K, V> is a part of Java’s collection since Java 1.2. This class is found in java.util package. It...

HashMap in Java with Examples

HashMap<K, V> is a part of Java’s collection since Java 1.2. This class is found in java.util package. It...

EnumMap class in Java

EnumMap is a specialized implementation of the Map interface for enumeration types. It extends AbstractMap and implements the Map...

EnumMap class in Java

EnumMap is a specialized implementation of the Map interface for enumeration types. It extends AbstractMap and implements the Map...

Disjoint Set Data Structures

Consider a situation with a number of persons and following tasks to be performed on them. Add a new...

Disjoint Set Data Structures

Consider a situation with a number of persons and following tasks to be performed on them. Add a new...

Internal working of Set/HashSet in Java

As we know that a set is a well-defined collection of distinct objects. Each member of a set is...

Internal working of Set/HashSet in Java

As we know that a set is a well-defined collection of distinct objects. Each member of a set is...