A

Admin • 831K Points
Coach

Q. Which method blocks until an element becomes available for removal?

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

Explanation by: Admin
`take()` is a blocking method that waits until an item is available.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.