Upgrade Java SE 7 to Java SE 8 OCP Programmer (1Z0-810)

© examsiri.com
Question : 7 of 8
 
Marks: +1, -0
Given the code fragment:
public static void main(String[] args) {
Stream nums = Stream.of(1, 2, 3, 4, 5);
nums.filter(n -> n % 2 == 1);
nums.forEach(p -> System.out.print(p));
}

What is the result?
Go to Question: