-
What is Stack Data Structure in Java? Complete Beginner’s Guide
Stack is liner data structure , in stack you can insert and remove the data from top. stack is last in first out(LIFO). We can push and pop data from top . Stack is a linear data structure that follows the last in first out (LIFO) principle . this means that the last element added to the stack is the first one to be removed . think of it like a stack of plates you add plates to the top and also removed them from the top . Basic operations Where to use stacks 1.Stack Implementation using array Stack Empty Design 2.Write a program to Reverse string using stack