Which two methods from the java.util.stream.Stream interface perform a reduction operation? (Choose two.)
A. count ()
B. collect ()
C. distinct ()
D. peek ()
E. filter ()
Which two methods from the java.util.stream.Stream interface perform a reduction operation? (Choose two.)
A. count ()
B. collect ()
C. distinct ()
D. peek ()
E. filter ()
reduce() and collect(), as well as multiple specialized reduction forms such as sum(), max(), or count()
A and B