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
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.
Step by Step Solution
3.47 Rating (163 Votes )
There are 3 Steps involved in it
The correct answers are A and E Choice A Stateful lambda expressions should be avoided on both seria... View full answer
Get step-by-step solutions from verified subject matter experts
