In this article, I want to mention how memory management is done in .NET environment. I will try to keep it…