Guys I am kinda confused can anyone Explain
Well this is the code https://code.sololearn.com/cAnoP85svs4U code: class First{ int x; public First(int x){ this.x = x; } protected void finalize() throws Throwable{ System.out.println("Well this apparently a finalized statement + " + x); } } public class Program { public static void main(String[] args) { First f1 = new First(100); First f2 = new First(200); f1 = f2; System.gc(); System.out.println("Hello World"); } } well It doesn't do what I intended to do guys pls help me understand also Output: Hello World Note: ./Playground/First.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.