R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is returned by `collect(Collectors.joining(", "))`?

  • (A) String with all elements joined by commas
  • (B) List of strings
  • (C) Array of strings
  • (D) Map of strings
  • Correct Answer - Option(A)
  • Views: 11
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`Collectors.joining(", ")` joins strings in the stream separated by commas.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.