Which of the following is a blocking method for retrieving and removing the head?
Correct answer
takeFirst()
Explanation
`takeFirst()` blocks until an element is available in a blocking deque.
Update: Admin added a tag on this question
Topics
By Admin · · 33 views