A

Admin • 832.27K Points
Coach

Q. Which Queue method is suitable when blocking behavior is not desired?

  • (A) put()
  • (B) take()
  • (C) offer()
  • (D) wait()
  • Correct Answer - Option(C)
  • Views: 21
  • Filed under category Java
  • Hashtags: Java Queue

Explanation by: Admin

`offer()` does not block and returns false if the queue is full.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.