A

Admin • 828.03K Points
Coach

Q. What type of queue is best for implementing stacks in Java?

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

Explanation by: Admin
ArrayDeque can be used as a stack or queue and is more efficient than Stack.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.