Which of the following is not a type of Garbage Collection Mechanism ?
A) Reference counting
B) Finalization queue
C) Mark and sweep collection
D) Generational collection
I just know that garbage collection calls garbage collector which picks unused objects and deallocate it from the memory.
what is Reference counting ,Finalization queue? mark sweep collection and generational collection ?
please explain and why the answer is C)