Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.634 :

Posted: Sun Sep 04, 2011 9:13 am
by ETS User
Are strings in the string constant pool really never eligible for garbage collection?

Re: About Question com.enthuware.ets.scjp.v6.2.634 :

Posted: Fri Oct 14, 2011 4:11 pm
by Guest
ETS User wrote:Are strings in the string constant pool really never eligible for garbage collection?
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.