| Author |
sierra + bates scjp 5 - page 175
|
Alan Heebson
Greenhorn
Joined: Nov 05, 2007
Posts: 5
|
|
Fig 3-1 on page 175 shows a diagram of the stack and heap for the program written on the previous page. I have a query about "String[] args" argument used in the main method. Should the 'args' variable be shown as a local variable on the stack? 'args' isnt mentioned at all in Fig 3-1, can anyone tell me if it is an oversight in the book or alternativly point out where I am going wrong! Thanks
|
 |
Kelvin Chenhao Lim
Ranch Hand
Joined: Oct 20, 2007
Posts: 513
|
|
|
You're absolutely correct. The args variable does reside on the stack (but not the string array it points to), so strictly speaking the diagram should have reflected that.
|
SCJP 5.0
|
 |
Alan Heebson
Greenhorn
Joined: Nov 05, 2007
Posts: 5
|
|
|
Thanks Kelvin
|
 |
 |
|
|
subject: sierra + bates scjp 5 - page 175
|
|
|