Briefly describe garbage collection
Briefly describe garbage collection? Differentiate between garbage collections in .NET 4.0 and previous versions?
Expert
Garbage collection prevents memory leaks throughout execution of programs. Garbage collector is a low-priority procedure which handles the de-allocation and allocation of memory for application. It ensures for the variables and objects which are not referenced. If Garbage Collector discovers some object which is no longer utilized by the application, it sets the memory free from the object.
GC has altered a bit with the introduction of .NET 4.0. .NET 4.0, uses the GC.Collect() method which contains the following overloaded methods such as:
GC.Collect(int, GCCollectionMode) GC.Collect(int)
Another latest feature introduced in .NET is to inform you that when the GC.Collect() method is called up and completed effectively by using different methods. The .NET 4.0 supports a newest background garbage collection that substitute the simultaneous garbage collection used in previous versions. This concurrent GC assigns memory at the time of running and uses present segment (which is 16 MB on a workstation) for that. Following that, all threads are suspended. In case of background GC, a separate ephemeral GC - gen0 and gen1 can be initiated, though the full GC - gen0, 1, and 2 - is already running.
List some of the new controls which are introduced in the ASP.NET AJAX Control Toolkit?
Distinguish between RichTextBox control and TextBox control.
Write about the architecture of ADO.NET in brief.
How to ensure that no one has interfered with ViewState in the Web page?
Briefly describe contra-variance and covariance in .NET Framework 4.0 and give an example for both?
Explain the necessary syntax of the LINQ query in the Visual Basic and also in the C#.
Write the name of two new properties that are further added in an ASP.NET 4.0 Page class?
Describe the function of a SizeMode property of a PictureBox control?
What is covariance and contra-variance in .NET Framework 4.0 with example for each.
What are literals and name the different types of literals in visual basic?
18,76,764
1921908 Asked
3,689
Active Tutors
1436003
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!