So this will be the last one on stacks. Here I'll talk about the places where stacks will be used.
One most popular place this is used is the undo and redo buttons. When you change something the changes are placed in a stack and for some reason when you undo it, it'll pop the top change back.
One most popular place this is used is the undo and redo buttons. When you change something the changes are placed in a stack and for some reason when you undo it, it'll pop the top change back.
Another place would be in the web browser. The history of you visited page addresses will be in a stack. When you click back it will direct to the previous page.
JVM itself is a stack oriented VM just like most of them.
In operating systems the stacks keeps the return addresses when functions are called from another function. The stack will provide the jump address when its done.
That will be all about stacks. So if you are interested do Experiments .