Hi Jim,
You're right in stating that String literals are not gc'd. Unfortunately many of the mocks ignore this fact and use String literals in their gc questions.
When you are doing mocks assume String literals are gc'd. The real exam gc questions use non-String objects.
In this question 2 string objects are created in the Process method; both will be eligible for gc when the method completes as no references to them will exist when control is passed back to main().
Hope that helps.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform
Co-author
Mike Meyers' Java 2 Certification Passport
[This message has been edited by Jane Griscti (edited December 04, 2001).]