|
How many objects exist just before this program stops running? A good answer might be:Two: the String object that contains "A Greeting!" and the HelloObject. |
Picture of the Running Program
Here is a picture showing the objects in the program just before it stops running. Of course, when it stops running all the objects become inactive and are re-claimed by the operating system. Notice how there is a way to find everything:
Don't worry terribly much about all these details. Look them and the picture over a few times and then move on. Come back to this chapter in a few days when things have soaked in a bit. |
QUESTION 21:(Obvious question:) Can there be several HelloObject objects created in the main method? Click Here after you have answered the question |