Java syntax: Difference between revisions

Content deleted Content added
m linking
Line 1,129:
</syntaxhighlight>
 
Since Java has a garbage collection mechanism, there are no [[Destructor (computer science)|destructors]]. However, every object has a <code>finalize()</code> method called prior to garbage collection, which can be [[method overriding|overridden]] to implement finalization.
 
====Methods====