A

Admin • 825.56K Points
Coach

Q. Which method is used to insert an element at the front in a blocking deque?

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

Explanation by: Admin
In LinkedBlockingDeque, `putFirst()` waits if necessary for space to become available.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.