R Ram Sharma • 3.40K Points Extraordinary Q. What happens when a duplicate key is inserted in a HashMap? (A) It throws an exception (B) It ignores the new key (C) The old value is replaced (D) Both values are stored Correct Answer - Option(C) Views: 8 Filed under category Java Hashtags: Share Manage Tags
Discusssion
Login to discuss.