A

Admin • 828.43K Points
Coach

Q. Which queue implementation is thread-safe and supports blocking operations?

  • (A) PriorityQueue
  • (B) ArrayDeque
  • (C) LinkedList
  • (D) LinkedBlockingQueue
  • Correct Answer - Option(D)
  • Views: 17
  • Filed under category Java
  • Hashtags: Java Queue

Explanation by: Admin
LinkedBlockingQueue is thread-safe and supports blocking retrieval and insertion.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.