Dispose() and Finalize() methods
Specify the differences between the Dispose() and Finalize() methods.
Expert
CLR utilizes the Finalize and Dispose methods to execute garbage collection of run-time objects of .NET applications.
The Finalize () method is called automatically by runtime. CLR has garbage collector (GC), that periodically checks for objects in the heap which are no longer referenced by any of the object or program. It calls the Finalize method in order to free the memory utilized by these type of objects.
The Dispose () method is called manually by the programmer. Dispose is other method to evacuate the memory used by the object. The Dispose method required to be called explicitly in the code to dereference an object within the heap. The Dispose method can be invoked by the classes that implements the IDisposable interface.
Explain about the Native Image Generator?
What is HTML server control in ASP.NET?
Write the difference between for loop and the while in C#.
What is the way to identify that a Page is Post Back?
Specify various types of assemblies and explain them.
What do you understand by the term states in ASP.NET?
Explain Lazy Initialization?
Describe code access security (CAS)?
What do you mean by the term base class of .net?
State the types of workflow in the WF?
18,76,764
1958496 Asked
3,689
Active Tutors
1421697
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!