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 ...
- 2. Java Data Types and Their Usage
- from Oracle Certified Associate, Java SE 7 Programmer Study Guide
- Publisher: Packt Publishing
- Released: August 2012
Need to understand it more clearly. Not very clear!. What does the pushing of program stack to Heap mean?
Share this highlighthttp://www.safaribooksonline.com/a/oracle-certified-associate/68754/