|
You may run across mock exam questions or discussions that state Strings created as part of the String pool are never garbage collected. This may well be true as garbage collection is implementation dependent.
The certification exam will not contain questions that rely on specific implementations of any JVM; for exam purposes it is unlikely you will see any gc questions involving pooled Strings. Just remember once an Object reference has been set to null it is eligible for garbage collection.
|