R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the result of `Collectors.mapping(Function.identity(), Collectors.toList())`?

  • (A) Filtered list
  • (B) Mapped stream
  • (C) Unchanged list
  • (D) Original list copied to a new list
  • Correct Answer - Option(D)
  • Views: 6
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`Function.identity()` returns the element itself, so the result is a list of unchanged elements.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.