Login
Remember
Register
Ask a Question
Which method is used to perform a reduction operation on the elements of a stream in Java?
0
votes
asked
May 7, 2024
in
JAVA
by
SakshiSharma
Which method is used to perform a reduction operation on the elements of a stream in Java?
a) reduce()
b) collect()
c) join()
d) map()
elements
stream
java
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 7, 2024
by
SakshiSharma
Solution: a) reduce()
Explanation: The reduce() method is used to perform a reduction operation on the elements of a stream in Java.
...