R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the result of `Collectors.partitioningBy()`?

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

Explanation by: Ram Sharma
`partitioningBy()` returns a map with keys `true` and `false`, mapping to lists of matching elements.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.