a stack can be an array or a linked list. Imagine a stack of dishes and you can only put a dish on top or take a dish of the top. The only major operations you can do on a stack is pop and push.
You can implement a stack using a array, linked list or there is a stack class in Java
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.