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 some of the versions of .NET?
Explain the term Merge Module projects?
Describe the term Address, Binding and contract for WCF Service?
What do you understand by the garbage collection? Explain the difference between garbage collections in .NET 4.0 and its earlier versions.
State the difference between GroupBox and Panel control?
List out the different components of an assembly.
Explain the chief built-in objects in the ASP.NET?
State the difference between a class and a structure?
What Global.asax file includes in event handlers?
Is it possible to validate a DropDownList by RequiredFieldValidator?
18,76,764
1955938 Asked
3,689
Active Tutors
1433373
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!