A Admin • 802.91K Points Coach Report Q. What happens when you add a duplicate key to a HashMap? (A) It throws an exception (B) It adds a duplicate entry (C) It updates the existing value (D) It ignores the new entry Correct Answer - Option(C) Views: 3 Filed under category Java Hashtags: Java Map Share Manage Tags
Discusssion
Login to discuss.