Given the following code snippet, which lambda expressions are the best choices for an accumulator? (Choose two.)

Question:

Given the following code snippet, which lambda expressions are the best choices for an accumulator? (Choose two.) 

image text in transcribed

A. (a,b) -> (a-b)

B. (a,b) -> 5

C. (a,b) -> i++

D. (a,b) -> {words.add("awesome"); return 0;}

E. (a,b) -> {return 0;}

F. (a,b) -> words.add("awesome").

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: