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

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

Question

Given the code fragment:

Deque<Integer> nums = new ArrayDeque<>();
nums.add(1000) 7

nums .push (2000)

nums add (3000) 7

nums .push (4000) +

Integer il = nums.remove();

Integer i2 = nums.pop()7
System.out.printin(il +

" 4 42);

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.