Skip to main content

Stack In JAVA


Stack in JAVA

In this tutorial you will learn 1) What is a stack? 2) How is stack used in programming? 3) Implementation of stack in JAVA What is a stack? Stack is one of the most important data structure in programming, it can be imagined as the bottle of balls which is open from one end. So the addition and deletion of balls can be done through one end only. The element which goes last in the stack is first to be extracted from the stack. So the stack works on last in first out principle (LIFO). How is stack used in programming Stack is very useful for programming purposes

Add new comment

Code File