VB.Net Interview Questions and Answers Pdf - 2

Question: 6

What is Garbage Collection in .NET?

The process of transitively tracing through all pointers to actively used objects in order to locate all objects that can be referenced, and then arranging to reuse any heap memory that was not found during this trace.

The common language runtime garbage collector also compacts the memory that is in use to reduce the working space needed for the heap.

Question: 7

What is the difference between the value-type variables and reference-type variables in terms of garbage collection?

The value-type variables are not garbage-collected, they just fall off the stack when they fall out of scope, the reference-type objects are picked up by GC when their references go null.

Question: 8

What is the difference between Java and .NET garbage collectors?

Sun left the implementation of a specific garbage collector up to the JRE developer, so their performance varies widely, depending on whose JRE you’re using.

Microsoft standardized on their garbage collection.

Question: 9

How do you convert a string into an integer in .NET?

Int32.Parse(string), Convert.ToInt32().

Question: 10

How to find methods of a assembly file (not using ILDASM)

Reflection

Related Questions