Exam 1z0-809 All QuestionsBrowse all questions from this exam
Question 134

Given:

and the code fragment:

What is the result?

    Correct Answer: A

    The code will compile and run without any errors. The stream operation first filters the list of Person objects to select those with age greater than or equal to 25. Only 'Jack' meets this criteria. It then filters the stream to count how many of the remaining Person objects have 'Hill' in their name. Since 'Jack' does not contain 'Hill' in his name, the count is 0. Therefore, the correct result is 0.

Discussion
jduarteOption: A

Answer is A. Tested.

sansay61Option: A

Answer is A

steefaandOption: A

A is correct.

duydnOption: A

A is correct, tested!

SamriddjiOption: A

A, tested