R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the result of collecting with `Collectors.partitioningBy(x -> x > 5)`?

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

Explanation by: Ram Sharma
`partitioningBy()` splits elements into true and false groups.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.