File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 2451
    
  28

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: 86
    
    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..! :-)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Answer a programming question, get a tiny bit of fame!