• Tutorials
  • Courses
  • Tracks

C# | Garbage Collection | Q-1

Last Updated :
Discuss
Comments

When does an object become eligible for garbage collection?

When it is created

When no variable holds a reference to it

Immediately after a method ends

Only when GC.Collect() is called

Tags:
Share your thoughts in the comments
Article Tags :