Which algorithm is used by garbage collector?

Which algorithm is used by garbage collector

 

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

 

Leave a Reply