Category Archives

Hashtable in Java

The Hashtable class implements a hash table, which maps keys to values. Any non-null object can be used as...

Hashtable in Java

The Hashtable class implements a hash table, which maps keys to values. Any non-null object can be used as...

Traverse through a HashMap in Java

HashMap is a part of the java collections framework. It internally uses hashing technique. This post contains different ways...

Traverse through a HashMap in Java

HashMap is a part of the java collections framework. It internally uses hashing technique. This post contains different ways...

ConcurrentHashMap in Java

The ConcurrentHashMap class is introduced in JDK 1.5 belongs to java.util.concurrent package, which implements ConcurrentMap as well as to...

ConcurrentHashMap in Java

The ConcurrentHashMap class is introduced in JDK 1.5 belongs to java.util.concurrent package, which implements ConcurrentMap as well as to...

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...