Given:
What is true?
Given:
What is true?
The program utilizes a parallel stream to filter the items whose amount is less than the average. When using parallel streams, the order of execution is not guaranteed, and therefore, the result may vary on different executions. This is because the first element that meets the condition in the filter stage may differ each time depending on how the stream processes its elements in parallel. Therefore, this may not print the same result each time the program runs.
This will not print same every time.
when used parallel result is not same everytime
D is the correct answer Tested