R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the effect of using `groupingBy(Function, Supplier, Collector)`?

  • (A) Provides custom grouping keys
  • (B) Specifies result map implementation
  • (C) Changes stream order
  • (D) Collects null-safe stream
  • Correct Answer - Option(B)
  • Views: 11
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
The second parameter of `groupingBy()` is a `Supplier` for the map implementation (e.g., TreeMap).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.