Given:
and the code fragment:What is the result?
Given:
and the code fragment:What is the result?
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.
Answer is A. Tested.
Answer is A
A is correct.
A is correct, tested!
A, tested