Home / Report Question

Q. Which method removes and returns the first element in Deque?
  • A. pollLast()
  • B. pollFirst()
  • C. peekFirst()
  • D. pop()