Monday, August 1, 2011

Java Questions - 29

What's the difference between a queue and a stack?

Stacks works by last-in-first-out rule (LIFO), while queues use the FIFO rule


No comments: