InterviewSolution
Saved Bookmarks
| 1. |
What is the difference between Queue and Stack?(a) Stack is LIFO; Queue is FIFO(b) Queue is LIFO; Stack is FIFO(c) Stack and Queue is FIFO(d) Stack and Queue is LIFOThis question was posed to me at a job interview.This interesting question is from Data Structures-Queue topic in chapter java.util – The Collections Framework of Java |
|
Answer» Right answer is (a) Stack is LIFO; QUEUE is FIFO |
|