Question 109 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question 109 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question

Given the code fragment:

List<String> words = Arrays.asList("win", "try", "best", “luck'
Predicate<String> testi = w -> {

System. out .printn("Checking...");

return w.equals ("do"); // Line ni

"do"):

i
Predicate test2 = (String w) -> w.length() > 3; // line n2
words. stream()

-filter(test2)

-filter(test1)

-comnt 0) 2

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.