http://au2.php.net/manual/en/language.oop5.decon.php
In talking about destructors, Java doesn't have destructors as suggested in this document. It has finalizers (similar to destructors) but they are not necessarily run when the object loses all references to it, rather when (or if) the garbage collector runs. A more suitable example would be C++ as this example has the potential to confuse beginners. Glenn Crook