A

Admin • 830.13K Points
Coach

Q. Which queue class is most appropriate for LIFO (stack-like) behavior?

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

Explanation by: Admin
`ArrayDeque` supports both stack (LIFO) and queue (FIFO) operations.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.