A

Admin • 828.70K Points
Coach

Q. Which Deque method acts similarly to `Stack.pop()`?

  • (A) removeFirst()
  • (B) pop()
  • (C) pollFirst()
  • (D) dequeue()
  • Correct Answer - Option(B)
  • Views: 14
  • Filed under category Java
  • Hashtags: Java Deque

Explanation by: Admin
pop() removes and returns the head element, behaving like Stack.pop().

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.