Article View: borland.public.jbuilder.java.swing
Article #461Re: Reference and Garbage Collection
From: Vander
Date: Tue, 05 Jul 2005 07:13
Date: Tue, 05 Jul 2005 07:13
19 lines
1397 bytes
1397 bytes
Ok. So let me refine the example as follows. Would you agree objects of
NeverRelease will be locked in memory?
class NeverRelease
{
String habitat;
Child1 child;
public NeverRelease ( String street )
{
habitat = street;
child = new Child1();
}
private class Child1
{
System.out.println( "Hello, I live in " + habitat );
}
}
Technical Details
Message-ID:
<42ca330e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42ca2130$1@newsgroups.borland.com> <42ca2885$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,afdd6d6a52ac0c35 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 05 Jul 2005 09:13:45 +0200 From: Vander <874505@gmx.de> User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Reference and Garbage Collection References: <42ca2130$1@newsgroups.borland.com> <42ca2885$1@newsgroups.borland.com> In-Reply-To: <42ca2885$1@newsgroups.borland.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 84.152.204.147 Message-ID: <42ca330e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1120547598 84.152.204.147 (5 Jul 2005 00:13:18 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail