Out of curiosity,
Why is the finalize() method\'s access modifier is made as protected. Why cant it be public? Can someone exp
finalize()
protected
public
I think the reason why finalize is protected would be that maybe it's overridden by some classes in the JDK, and those overridden methods are called by JVM.
finalize