R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the return type of `groupingBy()`?

  • (A) Map<K, List<T>>
  • (B) Set<T>
  • (C) List<T>
  • (D) Map<T, List<K>>
  • Correct Answer - Option(A)
  • Views: 8
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`groupingBy()` returns a `Map` with keys based on the classifier and list of values.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.