package rubbishdemo;public class finalizedemo {
public static void main(String[] args) {
Book novel=new Book(true);
novel.checkInt();
new Book(true);
System.gc();
}


}
    class Book{
     boolean checkedOut=false;
     Book(boolean checkOut){
     checkedOut=checkOut;
     }
     void checkInt(){
     checkedOut=false;
     }
     protected void finalize(){
     if(checkedOut){
     System.out.println("Error :checked out");
     }
    
     }
    }System.gc();
这句话 是什么意思啊