1 posts in topic
Flat View  Flat View

Posted By:   ericros_garcia
Posted On:   Monday, August 30, 2004 11:07 PM

definition of java destructors and constructors

Re: destructors

Posted By:   Rohit_Sharma  
Posted On:   Tuesday, August 31, 2004 12:02 AM


Destructors in java automatically taken care by java's
garbage collection mechanism(where objects/resources
which are no longer referrenced are deleted for the
memory),also even if someone explicitly wants to free
some resources it should be done through the use of
finalize() method.

Constructors on the other hand are provided by-default by
java or can be created by the user,they help
initialising the variable,resources as soon as the
object is created.

About | Sitemap | Contact