Article View: aus.computers.java
Article #433Re: How to cleanup when a class is destroyed ?
From: DavidL
Date: Thu, 12 Oct 2000 00:00
Date: Thu, 12 Oct 2000 00:00
22 lines
1522 bytes
1522 bytes
I agree Stephen. But shouldn't the garbage collector cleanup when the application is completed ? I thought that when the app is completed, the garbage collector would clean up the the instantiated class1, hence calling the finalize method. If that isn't the case, how do you arrange for an instantiated class to close ports it has opend etc, when the application is completed ? This is puzzling ! "Stephen Oakes" <soakes1@bigpond.net.au> wrote in message news:uDgF5.2142$wG1.4828@news-server.bigpond.net.au... > In Java you let the garbage collector clean up. > > -- > Stephen Oakes > > >
Technical Details
Message-ID:
<39e5962b$1@server.local>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39e57bc3$1@server.local> <uDgF5.2142$wG1.4828@news-server.bigpond.net.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,d25b87a070be9251 X-Google-Attributes: gid10d6db,public From: "DavidL" <email.address@in.message> Subject: Re: How to cleanup when a class is destroyed ? Date: 2000/10/12 Message-ID: <39e5962b$1@server.local> X-Deja-AN: 680518703 References: <39e57bc3$1@server.local> <uDgF5.2142$wG1.4828@news-server.bigpond.net.au> X-Original-NNTP-Posting-Host: 192.168.0.5 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 971347916 144.132.179.174 (Thu, 12 Oct 2000 21:51:56 EST) X-Authenticated-User: davidl Organization: BigPond Internet Services (http://www.bigpond.net.au) X-Original-Trace: 12 Oct 2000 21:44:59 +1100, 192.168.0.5 X-MSMail-Priority: Normal NNTP-Posting-Date: Thu, 12 Oct 2000 21:51:56 EST Newsgroups: aus.computers.java