A

Admin • 828.43K Points
Coach

Q. Which method removes and returns the head of a BlockingQueue, waiting if necessary?

  • (A) poll()
  • (B) remove()
  • (C) take()
  • (D) get()
  • Correct Answer - Option(C)
  • Views: 22
  • Filed under category Java
  • Hashtags: Java Queue

Explanation by: Admin
`take()` blocks until an element becomes available.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.