A

Admin • 828.03K Points
Coach

Q. Which Queue method is atomic and thread-safe in a ConcurrentLinkedQueue?

  • (A) add()
  • (B) offer()
  • (C) poll()
  • (D) All of the above
  • Correct Answer - Option(D)
  • Views: 13
  • Filed under category Java
  • Hashtags: Java Queue

Explanation by: Admin
All core operations in `ConcurrentLinkedQueue` are thread-safe and atomic.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.