Which of these is a thread-safe implementation of Deque?

  1. ArrayDeque
  2. LinkedBlockingDeque
  3. LinkedList
  4. PriorityQueue
Correct answer LinkedBlockingDeque

Explanation

LinkedBlockingDeque is part of java.util.concurrent and is thread-safe.

Update: Admin added a tag on this question

Topics

By Admin · · 28 views