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

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

Question

Given the code fragment:

List<String> qwords = Arrays.asList("why ", “what ", "when ")
BinaryOperator<string> operator = (sl, s2) -> sl.concat(s2); // line nl
String sen = qwords.stream()

-reduce("Word: ", operator

System.out.printin (sen) ;

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.