In my Garbage Collection tutorial, I discussed how Java uses the garbage collector to free up memory on the heap. Objects are stored in the heap memory and they become eligible for cleanup when they no longer have an active reference. There are occasions when you will need to perform some sort of action when an object is about to be destroyed. Luckily, Java provides a method for doing just that, it is called the finalize() method. Unluckily, it is important to understand that the finalize() method cannot be relied upon to actually execute ... I'll explain later in this tutorial.
Auf dieser Seite können Sie das Online-Video Learn Java Programming - The Finalize Method Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Daniel Ross 04 August 2015 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 15,162 Mal angesehen und es wurde von 151 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!