Tell me about the internal working of Garbage collector?
Answer Posted / kanth
The main objective of GC is Memory Management....
Gc wil take initiative when ever the application meemory is
low...we hav Finalize() method which runs implicitly...and
Dispose() method which we hav to kal Explicity....
Gc identifies the unused objects with reference counting
concept.
Finalize() method runs implicitly and free the resources if
the object havin no references...in the case of Dispose()
method it wont mind if the reference r ther.....
Gc maintain 4 Generation...start with 0 ..ends with 3
if GC released the resources using
Finalize method() still u can get the object..coz dis
method havin backup...it stores in generation0-3
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is the domain object?
What is associationset? : Entity framework
Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?
How can you return string result from Action in ASP.Net MVC?
What is route config?
Does Tempdata hold the data for other request in ASP.Net MVC?
How route table has been created in asp.net mvc?
What is Differnce between html.action and ajax.action?
What is a model in android?
Explain Sections is ASP.Net MVC?
What is entitycontainer? : Entity framework
Where are the routing rules defined in an asp.net mvc application?
Which is the default http method for an action method?
How we can add the CSS in ASP.Net MVC?
Can we free memory explicitly without waiting for garbage collector to free the memory in .net compact framework?