Duplicates in HashMap and HashSet - Java

In HashMap new value overrides the old value

In HashSet old value remains the same and returns false.

Comments

Popular posts from this blog

Find pair whose sum is k - java

Class, Reference and Object