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

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

Question

Given the code fragment:

List<Integer> li = Arrays.asList(10, 20, 30)
Function<Integer, Integer> fn = £1 -> fl + fir

Consumer<Integer> conVal = 5 -> System.out.print("val:" + 5 +" ");
1i.stream() -map (fn) . forEach (conval) ;

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.