What is the need arises for introducing Weak HashMap when there is already other implementations available.
In short i have two issues :
Why jdk has WeakHashMap when there is HashMap and Concurrent HashMap in java ?
What is the use of it in real life applications ?
EDIT :
Though WeakHashmap key is a weak references but still they refer to something than on what basis GC discard keys in WeakHashMap.
You can use an object as a key without preventing its collection.
From the WeakHashMap documentation: