Thursday, March 12, 2009

What's the difference between a queue and a stack (CoreJava)

Question :What's the difference between a queue and a stack? (CoreJava)
Answer :Stacks works by last-in-first-out rule (LIFO), while queues use the FIFO
rule.

No comments: