O'Reilly logo
  • MOHIT TALWAR thinks this is interesting:

When the main method is executed, an activation record is pushed onto the program stack. As shown in the following diagram, its activation record consists of only the single args parameter and the customer reference variable. When the instance of the Customer class is created, an object is created and allocated on the heap. The state of the stack and heap reflected in this example occurs after the Customer constructor executes. The args reference variable points to an array. Each element ...

From

Cover of Oracle Certified Associate, Java SE 7 Programmer Study Guide

Note

Need to understand it more clearly. Not very clear!. What does the pushing of program stack to Heap mean?