Which algorithm is used by garbage collector to remove the unused variables or objects from memory?

Garbage collector uses many algorithms but the most commonly used algorithm is mark and sweep.

No comments:

Post a Comment