Home / Report Question

Q. Which method removes the first element in a Deque and throws exception if empty?
  • A. pollFirst()
  • B. removeFirst()
  • C. deleteFirst()
  • D. pop()