The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000



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.


(i==47) will be checked anywhere.

Posted by James Wang on November 16, 2000 at 4:56 AM

You can try
java Garbage>output.txt

in output.txt ,you can find (i==47) has been checked.

> Hi you all,

> I've tried inserting a line in '' 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


Sponsored Links

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