Exam 1z0-819 All QuestionsBrowse all questions from this exam
Question 35

Given:

What is true?

    Correct Answer: D

    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.

Discussion
RP384Option: D

This will not print same every time.

d7bb0b2Option: D

when used parallel result is not same everytime

StavokOption: D

D is the correct answer Tested