Stack on Array in Java
Channel:
Subscribers:
1,570
Published on ● Video Link: https://www.youtube.com/watch?v=ZhXvLSjIPTI
Stack on Array in Java
In this tutorial, I have shown how to write a Java program to implement the stack data structure using an array.
A stack is a linear data structure that works on LIFO (Last In First Out) principle. The insert operation is known as the 'push' operation. The delete operation is known as the 'pop' operation. Displaying the topmost element is known as the 'peek' operation.
When the stack is full and it isn't possible to push more elements, it leads to Stack Overflow. When an stack is empty and it isn't possible to delete any element, it leads to Stack Underflow.
#stack #computerscience #isc #java #lifo
Other Videos By Robin Sir
2023-06-19 | Factorial in Java using Recursion |
2023-06-18 | Binary Search Tree in Java |
2023-06-17 | Deque Program in Java |
2023-06-16 | Interface Program in Java | ISC 2020 |
2023-06-15 | Circular Queue in Java |
2023-06-14 | Lead Number in Java |
2023-06-13 | Duck Number in Java |
2023-06-13 | Pig Latin Program in Java |
2023-06-11 | Queue on Array in Java |
2023-06-07 | Linked List in Java |
2023-06-06 | Stack on Array in Java |
2023-06-06 | Abundant Number in Java |
2023-06-04 | StringTokenizer in Java |
2023-06-03 | Input & Output to Binary File in Java |
2023-06-02 | Input from Text File in Java |
2023-06-01 | Appending to Text File in Java |
2023-05-31 | Output to Text File in Java |
2023-05-30 | Convert Binary Integer to Octal in Java |
2023-05-29 | Convert Binary Integer to Decimal in Java |
2023-05-28 | Print Boundary Elements of a Matrix in Java |
2023-05-27 | Print Matrix Diagonal Elements in Java |
Tags:
robin sir
stack
stack on array
computer science
isc
java