@@ -0,0 +1,699 @@
+package finalization;%0A%0Aimport java.io.IOException;%0A%0Apublic class FinalizationRun  %7B%0A%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        FinalizationRun one = new FinalizationRun(%22one%22);%0A        FinalizationRun two = new FinalizationRun(%22two%22);%0A        System.out.println(%22Create two object%22);%0A        one = null;%0A        System.gc();%0A        //Runtime.getRuntime().gc();%0A%0A        System.out.println(%22Exit%22);%0A    %7D%0A%0A    private String name;%0A    public FinalizationRun(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A    @Override%0A    protected void finalize() throws Throwable %7B%0A        System.out.println(%22%D0%9E%D1%81%D0%B2%D0%BE%D0%B1%D0%BE%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5 %D1%80%D0%B5%D1%81%D1%83%D1%80%D1%81%D0%BE%D0%B2: %22+ this.name);%0A        super.finalize();%0A    %7D%0A%7D%0A

Add example finalization