Return to site

JAVA CERTIFICATION QUESTION: Search stream data using the findFirst, findAny, and anyMatch methods (advanced)

October 28, 2020

Streams are complicated. With the right approach, they can be very efficient too.

Given the following code:

Which code fragment determines if the word “Java” is present in the src list in the most computationally efficient way? Choose one.

A.

B.

C.

D.