Google News
logo
Java - Interview Questions
What is the difference between Stack and LinkedList?
• A Stack is generally used for the purpose of evaluation of expressions. A LinkedList is used to store and retrieve data.
• Insertion and deletion of elements only from the top of the Stack is possible. Insertion and deletion of elements from anywhere is possible in case of a LinkedList.
Advertisement