A

Admin • 802.91K Points
Coach

Q. Which method retrieves but does not remove the last element of a Deque?

  • (A) peekLast()
  • (B) pollLast()
  • (C) getLast()
  • (D) element()

Explanation by: Admin
peekLast() returns the last element or null if empty without removing it.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.