A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Other Open Source APIs
Joined: Jul 18, 2006
Sep 06, 2006 02:21:00
objects in the string constant pool be garbage collected?
Joined: Oct 18, 2004
Sep 06, 2006 03:29:00
No string literals are not garbage collected. Here is a very good explanation of the same.
web Garbage collection for String literals
Joined: Jul 28, 2006
Sep 06, 2006 10:42:00
I thought that String literals could be garbage collected under ceratin conditions, like if the
that causes them to be loaded into memory was itself garbage collected. Am I wrong?
I agree. Here's the link:
subject: garbage collection
doubt on garbage collection
String garbage collection understanding
garbage collection for String
is Strings in Java are not garbage-collected ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015