Java tutorial
public class Main { public static void main(String[] args) throws Exception { System.out.println("finalization!"); System.runFinalization(); System.out.println("Done!"); } }