posted 23 years ago
Why do the following codes get the same output?
1. //...
System.gc();
System.runFinalization();
}
2.//...
System.runFinalization();
System.gc();
}
"Thinking in Java" says, the different output will be shown, and code2 will never implement the finalization. But I get the same result in JDK1.1.5 environment. Why? Thanks.