What does the following output?
ArrayDeque<Integer> dice = new ArrayDeque<>();
dice.offer(3);
dice.offer(2);
dice.offer(4);
System.out.print(dice.stream().filter(n -> n != 4));
D.
The code correctly creates an ArrayDeque with three elements.
The stream pipeline does compile.
There is no terminal operation.
The stream is never evaluated.
This is definitely not one of the listed choices, so Option D is correct.