A

Admin • 828.03K Points
Coach

Q. Which method waits if necessary to insert an element at the front of a deque?

  • (A) addFirst()
  • (B) offerFirst()
  • (C) putFirst()
  • (D) enqueueFirst()

Explanation by: Admin
`putFirst()` is a blocking method used in blocking deques like LinkedBlockingDeque.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.