R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which class implements a last-in, first-out (LIFO) stack?

  • (A) Queue
  • (B) Deque
  • (C) PriorityQueue
  • (D) Stack
  • Correct Answer - Option(D)
  • Views: 9
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`Stack` is a subclass of `Vector` that implements LIFO.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.