A

Admin • 831.35K Points
Coach

Q. Which method retrieves and removes the head, or waits if necessary?

  • (A) poll()
  • (B) element()
  • (C) take()
  • (D) next()
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Java
  • Hashtags: Java Queue

Explanation by: Admin
`take()` is used in blocking queues to retrieve and remove the head, waiting if needed.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.