A

Admin • 828.03K Points
Coach

Q. What is the output type of `Collectors.toMap()`?

  • (A) List
  • (B) Set
  • (C) Map
  • (D) Queue

Explanation by: Admin
`Collectors.toMap()` creates a Map from a stream using key and value mapping functions.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.