Information Technology Reference
In-Depth Information
This code produces the following output:
Enter Main
Enter MethodA: 15, 30
Enter MethodB: 11, 18
Exit MethodB
Exit MethodA
Exit Main
Figure 5-11 shows how the stack frames of each method are placed on the stack when the
method is called, and how the stack is unwound as the methods complete.
Figure 5-11. Stack frames in a simple program
Search WWH ::




Custom Search