Hi fellow ranchers
In the Enthuware
SCJP test one can find the following code:
with the question: "How many objects will be eligible for GC just after the method returns?"
The answer is 1, since "abc" is in the
string pool and therefore not eligible for GC, however I'm not sure whether this is true, because I would think that the string pool manager can choose to GC an object from the string pool?
Any thoughts you may have on this will be appreciated.
- Morten