Saturday 19 July 2014

Why Java don't have destructors

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.


                                                             Home

No comments:

Post a Comment