Guest_imported
New member
- Jan 1, 1970
- 0
I would like to ask, why the Garbage collector cannot be a subclass of the class implementing the finalize() method or in the same package?
I know the finalize() method must be declared to be protected, and a protected method can only ve accessed by subclasses or classes in the same package.Also, finalize() method is called by the Garbage Collector before an object is destroyed...
I know the finalize() method must be declared to be protected, and a protected method can only ve accessed by subclasses or classes in the same package.Also, finalize() method is called by the Garbage Collector before an object is destroyed...