A

Admin • 830.13K Points
Coach

Q. Which method inserts an element, waiting if necessary for space?

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

Explanation by: Admin
`put()` blocks if necessary until space is available in a blocking queue.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.