what is the use of finalization queue ?
Garbage Collector removes all the objects which are having references in finalization queue by calling finalize methods on those objects.
Garbage Collector will not delete the objects which are having references in finalization queue.
Garbage Collector uses the finalization queue to identify the classes which are implementing Idisposable interface.
None of the above.
When an object reference is present in finalization queue means , the corresponding objects unmanaged resource has been already cleaned or deleted . Hence GC can able to delete the managed object which was using unmanaged resource.
Back To Top