About Question com.enthuware.ets.scjp.v6.2.634 :
Posted: Sun Sep 04, 2011 9:13 am
Are strings in the string constant pool really never eligible for garbage collection?
Java Certification Resources and Java Discussion Forum
https://enthuware.com/forum/
I remember reading that although they are objects, they are kept in memory to be shared with others. They "MAY" be GC'ed at some point, but not immediately after the method finishes.ETS User wrote:Are strings in the string constant pool really never eligible for garbage collection?