DEVFYI - Developer Resource - FYI

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

Java Interview Questions and Answers (part 3)


(Continued from previous question...)

452. 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

(Continued on next question...)

Other Interview Questions