Question 6
Which Java 8 Stream API intermediate operation is used to transform each element of a stream into another object using a Function mapper?
Option A is correct. map() is a stateless intermediate operation that takes a Function mapper and transforms each element of the input stream into a corresponding output element.