Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Programmer Certification (OCPJP)
sierra + bates scjp 5 - page 175
Alan Heebson
Greenhorn
Posts: 5
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 513
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 5
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks Kelvin
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
stack or heap?
Multithreading queries with memory management
Question on page 53: SCJP Sierra/Bates
Passed SCJP 5.0 with 80%
referencing String objects
More...