A

Admin • 825.56K Points
Coach

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

  • (A) peekLast()
  • (B) pollLast()
  • (C) getLast()
  • (D) element()
  • Correct Answer - Option(A)
  • Views: 10
  • Filed under category Java
  • Hashtags: Java Deque

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.