What is Garbage collection
What do you understand by the garbage collection? Explain the difference between garbage collections in .NET 4.0 and its earlier versions.
Expert
Garbage collection avoids memory leaks during program execution. Garbage collector is a low-priority method that accomplishes the deallocation and allocation of memory for the application. It examines for the unreferenced objects and variables. If Garbage Collector (GC) discovers any object that is not used by the application at present, it empties the memory from that object.
Various changes have been introduced in the GC in .NET 4.0. In .NET 4.0, the GC.Collect() method comprises the following overloaded methods: GC.Collect(int), GC.Collect(int, GCCollectionMode)
Other new features which are introduced in .NET is to notify whenever the GC.Collect() method is invoked and is completed successfully by using different methods. The .NET 4.0 provides a new background garbage collection which replaces the simultaneous garbage collection which is used in the earlier versions. This concurrent GC assigns memory while running and uses current segment (which is 16 MB on a workstation) for that. After that, all the threads are suspended. In case of background GC, a separate ephemeral GC - gen0 and gen1 is started, while the full GC - gen0, 1, and 2 - is already running.
Distinguish between toolstrip drop-down button and toolstrip split button?
Which of the following steps involves Assembly execution? a Evidences are gathered about assembly. b Depending on the gathered evidences, the assembly is assigned to a code group. c Security rights are allocated to the assembly, depending on the code group. d Assembly runs as p
State the different types of authentication techniques which are used in connection strings to connect applications of .NET with Microsoft SQL Server?
List out the difference between the “dynamic” and “var” data types?
What do you mean by the term base class of .net?
Explain complete lifecycle of Web page?
Briefly explain the use of a Panel control? And also state whether it displays during runtime?
Explain how to store and retrieve images in the SQL server database via VB.NET?
Write the name of two new properties that are further added in an ASP.NET 4.0 Page class?
Briefly describe about ASP.NET?
18,76,764
1943057 Asked
3,689
Active Tutors
1443178
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!