The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

TIJ c04:Garbage.java why's that?

Posted by Suradera on November 08, 2000 at 4:49 AM

Hi you all,

I've tried inserting a line in 'Garbage.java' and the result is strange, why's that?

...
public void finalize() {
// inserting this code here
System.out.println("int i = " + i );
if(!gcrun) {
...

The result is very strange, sometimes the program never end. (seems if(i==47) never been checked)
Thanks in advance for your clarification.
B.Rgds,
Suradera




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us