Question 11
Method Stream.iterate(e, f) returns an infinite sequential ordered Stream produced by iterative application of a function f to an initial element e, producing a Stream consisting of e, f(e), f(f(e)), ...
Based on the above information, consider the code given below, and answer the question that follows.
import java.util.stream.*;public class Test { public static void main(String[] args) { Stream.iterate(50, p -> p - 5) .map(p -> p * 2) .filter(p -> p % 4 == 0) .limit(4) .forEach(p -> System.out.print(p + " ")); }}What will the output be?