The
purpose of a Destructor is usually to clear unused variables and
clean up the memory. Java has in built memory handling mechanisms
(Garbage collection) to clear off unused memory automatically. Hence
there is no requirement for destructor methods.
No comments:
Post a Comment