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.
List the types of generations there are in a garbage collector?
Write the major differences between the classic ADO and ADO.NET?
Explain, what is Connection Pooling?
State the method which can be used to impose Garbage collection in .NET?
Explain MaskedTextBox control? And also explain the function of Mask property?
Describe Common Language Specification (CLS)?
What is Memory-Mapped Files?
Briefly explain about ToolTip control. In what way we can associate it with another control?
Write the syntax of the while loop in the C# program.
Name the three states which are set in a CheckState property of the CheckBox?
18,76,764
1957054 Asked
3,689
Active Tutors
1431877
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!