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.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes