Learn Java Programming - The Finalize Method Tutorial

preview_player
Показать описание
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.
Рекомендации по теме
Комментарии
Автор

Your video is the best! Very explicit!

ThuanNguyen-boig
join shbcf.ru