R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which collector requires Java 12 or higher?

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

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.