Object Class, Garbage Collection and Finalize Method
Object Class, Garbage Collection and Finalize Method
Q -> How such objects are destroyed and their memory released for
later reallocation.
In some languages, such as C++, dynamically allocated objects
must be manually released by use of a delete operator.