Java Challenge 9
What will be the output?
That means, If the set has already an entry with the same hash key then it does not replace the old entry, it discards the new entry.
I was surprised to see; why there is no replace() method for the set but we have in other collections. Let me know the reason in the comment box below.