R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which collector requires Java 12+?

  • (A) Collectors.toList()
  • (B) Collectors.teeing()
  • (C) Collectors.groupingBy()
  • (D) Collectors.mapping()
  • Correct Answer - Option(B)
  • Views: 13
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`teeing()` was introduced in Java 12 to combine two collectors.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.