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

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

Question

Given the code fragment:

public static void main(string[] args) {
Stream.of("Java", "Unix", "Linux")
-filter(s -> s.contains("n"))
-peek(s -> System.out.println("PEEK: " + s))
// line nl

Which two code fragments, when inserted at line n1 independently, result in the output PEEK: Unix?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

CE.