Garbage collector: Whenever an
object is no longer used in the program, Java reclaims the memory of that object. It is performed by the Java implicitly, no need to care of
it. Finalize() will be called before sweeps the memory of an object by
java. Java does not support destructor, so we will use Garbage collector in
the place of destructor.
|
No comments:
Post a Comment