00001 package jpl.test; 00002 00003 public class Garbo { 00004 public static int created = 0; 00005 public static int destroyed = 0; 00006 // 00007 public final int i; 00008 public Garbo( ) { 00009 this.i = created++; 00010 } 00011 protected void finalize() throws Throwable { 00012 try { 00013 destroyed++; 00014 // System.out.println("gced["+i+"]"); 00015 } finally { 00016 super.finalize(); 00017 } 00018 } 00019 }