Home / Report Question

Q. Which method removes and returns the last element of a Deque?
  • A. pop()
  • B. pollLast()
  • C. removeFirst()
  • D. peekLast()