A

Admin • 802.91K Points
Coach

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

  • (A) pollFirst()
  • (B) element()
  • (C) peekFirst()
  • (D) getFirst()

Explanation by: Admin
peekFirst() retrieves but does not remove the first element, returning null if empty.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.