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

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
ETS User

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

Post by ETS User »

Are strings in the string constant pool really never eligible for garbage collection?

Guest

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

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests