Return to site

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

· java,ocp

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.

 

All Posts
×

Almost done…

We just sent you an email. Please click the link in the email to confirm your subscription!

OK