R Ram Sharma • 3.40K Points Extraordinary Q. What happens if `collect(Collectors.toMap())` encounters duplicate keys? (A) It merges the values automatically (B) It skips duplicates (C) It throws IllegalStateException (D) It returns empty map Correct Answer - Option(C) Views: 2 Filed under category Java Hashtags: Share Manage Tags
Discusssion
Login to discuss.