代码搜索:finalize
找到约 714 项符合「finalize」的源代码
代码结果 714
www.eeworm.com/read/158649/11594780
java garbage.java
//: c04:Garbage.java
// Demonstration of the garbage
// collector and finalization
// {NoAutomaticTesting}
class Chair {
static boolean gcrun = false;
static boolean f = false;
static i
www.eeworm.com/read/158649/11594799
java deathcondition.java
//: c04:DeathCondition.java
// Using finalize() to detect an object that
// hasn't been properly cleaned up.
import com.bruceeckel.simpletest.*;
class Book {
boolean checkedOut = false;
B
www.eeworm.com/read/158649/11595983
java frog.java
//: c07:Frog.java
// Testing finalize with inheritance.
import com.bruceeckel.simpletest.*;
class DoBaseFinalization {
public static boolean flag = false;
}
class Characteristic {
Strin
www.eeworm.com/read/158628/11596996
java subsingletonb.java
package ch10.section02;
public class SubSingletonB
extends SingletonB {
public static boolean instanceFlag = false;
public SubSingletonB() throws SingletonException {
if (instanceFl
www.eeworm.com/read/261494/11641698
txt java代码编写的一般性指导 (转贴).txt
作者:赖皮王子
日期:2001-6-9 17:01:30
作者 : javaduke(www.dukejava.com)
(1) 类名首字母应该大写。字段、方法以及对象(句柄)的首字母应小写。对于所有标识符,其中包含的所有单词都应紧靠在一起,而且大写中间单词的首字母。例如:
ThisIsAClassName
thisIsMethodOrFieldName
若在定义中出现了常数初
www.eeworm.com/read/344239/11897182
java terminationcondition.java
//: initialization/TerminationCondition.java
// Using finalize() to detect an object that
// hasn't been properly cleaned up.
class Book {
boolean checkedOut = false;
Book(boolean checkOut)
www.eeworm.com/read/344238/11897540
java referencecounting13.java
// polymorphism/ReferenceCounting13.java
// TIJ4 Chapter Polymorphism, Exercise 13, page 300
/* Add a finalize() method to ReferenceCounting.java to verify the termination
* condition (see the Init
www.eeworm.com/read/344238/11898022
java banktest.java
// initialization/BankTest.java
// TIJ4 Chapter Initialization, Exercise 11, page 177
// Modify the previous exercise so that finalize() will always be called.
class WebBank {
boolean log
www.eeworm.com/read/344238/11898029
java terminationconditionex.java
// initialization/TerminationConditionEx.java
// TIJ4 Chapter Initialization, Exercise 10, page 177
/* Create a class with a finalize() method that prints a message. In main(),
* create an object o
www.eeworm.com/read/344238/11898051
java tanktest.java
// initialization/TankTest.java
// TIJ4 Chapter Initialization, Exercise 12, page 177
/* Create a class called Tank that can be filled and emptied, and has a
* termination condition that it must be