1 / 25
ConceptsStreams: lazy evaluationeasymcq

What does this print?

List<Integer> nums = List.of(5, 12, 20);
nums.stream()
    .filter(n -> { System.out.println("check " + n); return n > 10; })
    .map(n -> n * 2);
System.out.println("end");

A–DanswerEnternextEscleave