Which statements about stateful lambda expressions are correct? (Choose two.) A. Stateful lambda expressions should be avoided

Question:

Which statements about stateful lambda expressions are correct? (Choose two.)

A. Stateful lambda expressions should be avoided on both serial and parallel streams.

B. Stateful lambda expressions should be avoided on only serial streams.

C. Stateful lambda expressions should be avoided on only parallel streams.

D. One way to avoid modifying a List with a stateful lambda expression is to use a concurrent collection.

E. One way to avoid modifying a List with a stateful lambda expression is to use a collector that outputs a List.

F. One way to avoid modifying a List with a stateful lambda expression is to use a synchronized list.

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

Step by Step Answer:

Question Posted: