A

Admin • 828.03K Points
Coach

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

  • (A) ArrayDeque
  • (B) PriorityQueue
  • (C) LinkedBlockingQueue
  • (D) ConcurrentLinkedQueue

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.