Which two methods from the java.util.stream.Stream interface perform a reduction operation?

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 ()

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “Which two methods from the java.util.stream.Stream interface perform a reduction operation?

  1. reduce() and collect(), as well as multiple specialized reduction forms such as sum(), max(), or count()

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.