A

Admin • 828.03K Points
Coach

Q. Which method in BlockingQueue adds an element, waiting indefinitely if full?

  • (A) add()
  • (B) put()
  • (C) offer()
  • (D) push()
  • Correct Answer - Option(B)
  • Views: 12
  • Filed under category Java
  • Hashtags: Java Queue

Explanation by: Admin
`put()` waits until space becomes available in the queue.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.