Which queue implementation can store elements with the same delay in any order?

  1. ArrayBlockingQueue
  2. SynchronousQueue
  3. DelayQueue
  4. PriorityQueue
Correct answer DelayQueue

Explanation

DelayQueue stores elements based on delay, but same-delay elements can appear in any order.

Update: Admin added a tag on this question

Topics

By Admin · · 22 views