Is the following statement correct: each object has Finalize method, which is called during garbage collection?
Explanation
System.Object class has Finalize method defined, but it is ignored by CLR, so objects of all classes inherited from Object (unless they define Finalize method explicitly), are not considered to be finalizable, i.e. Finalize method is not called during garbage collection.

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты