Which of the following method is used to convert one data stream into another by applying a function to each stream element?

20. Which of the following method is used to convert one data stream into another by applying a function to each stream element?

  1. Stream()
  2. Transform()
  3. Filter()
  4. Map()

Answer: D) Map()

Explanation:

The map() method is used to convert one data stream into another by applying a function to each stream element.


Comments and Discussions!









Copyright © 2023 www.includehelp.com. All rights reserved.