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.
What is the way to identify that a Page is Post Back?
Write the basic difference between GroupBox and the Panel control?
Briefly describe about XSLT?
Differentiate between the HtmlInputRadioButton or HtmlInputCheckBox control?
Write down a brief note regarding rapid application development tool?
Describe the role of the DataSet object in the ADO.NET?
Is there a technique to suppress the finalize process within the garbage collector forcibly in .NET?
How can we programmatically place a cursor on the given line or on the character in a RichTextBox control in the C#?
What is Object?
Write down a short note on the brief history of WPF?
18,76,764
1945628 Asked
3,689
Active Tutors
1456599
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!