R Ram Sharma • 3.40K Points Extraordinary Q. Which collector creates a sorted map using the natural ordering of keys? (A) groupingBy() with TreeMap::new (B) toMap() with TreeMap::new (C) partitioningBy() with sorted() (D) toSortedMap() Correct Answer - Option(B) Views: 4 Filed under category Java Hashtags: Share Manage Tags
Discusssion
Login to discuss.