Thanks for the replies... but I will expand on some of them, hopefully, sparking that flame that helps me get the question right next time...
Marcus Green notes in his tutorial regarding GC:
Local variables in methods go out of scope when the method exits. At this point the methods are eligible for garbage collection. Each time the method comes into scope the local variables are re-created.
It was this sort of problem with understanding scope that burned me on the exam the first time.
Jane makes a note about reference variables passed to methods and notes the importance of scope.
If a method is returning a value as it exits v. ( as noted by MG ) the method exiting directly , is that local variable available for collection?
Thanks for the help.
------------------
"This Satan's drink [coffee] is so delicious,
we shall cheat Satan and baptize it."
Pope Clement the VIII (1592-1605)
Timothy Stone, MIT, SCJP
http://www.petmystone.com/
"This Satan's drink [coffee] is so delicious, we shall cheat Satan and baptize it." --Pope Clement the VIII (1592-1605)