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

1 Expert Approved Answer
Step: 1 Unlock

The correct answers are A and E Choice A Stateful lambda expressions should be avoided on both seria... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!