Home / Report Question

Q. Which method retrieves but does not remove the last element of a Deque?
  • A. peekLast()
  • B. pollLast()
  • C. getLast()
  • D. element()