R Ram Sharma • 3.40K Points Extraordinary Q. What happens if duplicate keys are provided in `Collectors.toMap()` without a merge function? (A) Keeps the first key (B) Throws an exception (C) Overrides the previous value (D) Creates a list of values Correct Answer - Option(B) Views: 6 Filed under category Java Hashtags: Share Manage Tags
Discusssion
Login to discuss.