This is how the finalize() is defined in Object class: protected void finalize() throws Throwable { }
Can anyone tell me where is the code inside the method? I mean how Garbage Collector calls a method with empty body to perform cleanup activities associated with the object?