wood burning stoves*
The moose likes Meaningless Drivel and the fly likes Answer a programming question, get a tiny bit of fame! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "Answer a programming question, get a tiny bit of fame!" Watch "Answer a programming question, get a tiny bit of fame!" New topic
Author

Answer a programming question, get a tiny bit of fame!

Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2058
    
  22

Well, I guess if you are always taking the bottom pancake out, then you will make the whole stack cooler
Ashish Ramteke
Ranch Hand

Joined: Oct 24, 2012
Posts: 79
    
    1
First, a non-technical example
What I thought about is
suppose you have a big garbage-bin, and, you put the big garbage-(eco-friendly)polythene bags in it, one over the other (PUSHING in stack). Then, when those people come for garbage-collection, they take out the latest bags first (POPPING)...

A similar technical example...
Suppose, in some object-oriented programming language X, there is a 'Garbage-collection' mechanism like we have in Java. But, that programming language X, has a feature to Stack (PUSH) each object one over the other as it is created into a Stack, and, just before the program ends, the language has a feature to automatically destroy the objects that were created. For, destroying the objects, it starts from the object which is right at the top of the stack, the newest object created, and first removes it from the Stack (POPs it), and then destroyes it. Similarly, it Pops each object which is at the top.. until the stack of objects' list is empty.

Let me know what do you think..


Good day!!
 
wood burning stoves
 
subject: Answer a programming question, get a tiny bit of fame!
 
Similar Threads
How to get user input?
Help needed in Generics toArray() method
what the the scjd value in the market today?
Is XDoclet useful if i am using IBM Websphere
This weeks giveaway