R Ram Sharma • 3.40K Points Extraordinary Q. Which collector would be best to collect elements into a `TreeSet`? (A) Collectors.toSet() (B) Collectors.toTreeSet() (C) Collectors.toCollection(TreeSet::new) (D) Collectors.groupingBy(TreeSet::new) Correct Answer - Option(C) Views: 10 Filed under category Java Hashtags: Share Manage Tags
Discusssion
Login to discuss.