A

Admin • 802.91K Points
Coach

Q. Which method removes and returns the last element of a Deque?

  • (A) pop()
  • (B) pollLast()
  • (C) removeFirst()
  • (D) peekLast()

Explanation by: Admin
pollLast() removes and returns the last element or returns null if empty.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.