R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which class can be used to implement a stack?

  • (A) Queue
  • (B) Deque
  • (C) List
  • (D) Set
  • Correct Answer - Option(B)
  • Views: 12
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`Deque` (Double Ended Queue) can be used to implement a stack.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.