I was going through finalizer guardian example posted on Stack Overflow, I have few questions regarding this:
Why do we need to create a Guardian object? Why won't simply overriding the finalizer work? (as all classes are subclasses of the Object class).
At what moment is the Guardian object created? I assume that it is during class loading.
I didn't understand syntax of guardian object being created. A function is declared along with variable declaration. What this paradigm is called in Java?