How does Garbage collector(GC) works in .net
Answer Posted / ponvanaraja
1.The .NET Framework's garbage collector manages the
allocation and release of memory for your application.
2. Each time you create an object, the runtime allocates
memory for the object from the managed heap.
3.The garbage collector must perform a collection in order
to free some memory. The garbage collector's optimizing
engine determines the best time to perform a collection,
based upon the allocations being made.
4.When the garbage collector performs a collection, it
checks for objects in the managed heap that are no longer
being used by the application and performs the necessary
operations to reclaim their memory.
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is the file extension of web service?
How dataadapter.fill works?
Which of the following .NET framework supports Web API?
Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?
What are assemblies and namespaces and explain the difference between them ?
what are the security certificates used in webservices?
What is the use of web.config file?
How would you enable impersonation in the web.config file?
Explain in what order a destructors is called.
Explain exception handling in .net.
What is new asp.net core?
What's the use of formatters in .net?
What are asp.net web forms?
What is fulltrust?
What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?