- LIFO – Last In First Out data structure.
- Java JDK collections provide stack implementations.
- java.util.Stack – Synchronized.
- java.util.Deque – Interface. It’s the preferred one to use. ArrayList, LinkedList, BlockingDeque, ConcurrentLinkedDeque available.
- Applications
- Expression evaluation – Infix to postfix notations of expression.
- Function call – Stack segment implementation.
- Reversing items.