Explain the difference between managed and unmanaged code.

Managed code is a code created by the .NET compiler. It does not depend on the architecture of the target machine because it is executed by the CLR (Common Language Runtime), and not by the operating system itself. CLR and managed code offers developers few benefits, like garbage collection, type checking and exceptions handling. On … Read more

Explain the difference between a class and an object.

In short, a class is the definition of an object, and an object is instance of a class. We can look at the class as a template of the object: it describes all the properties, methods, states and behaviors that the implementing object will have. As mentioned, an object is an instance of a class, … Read more

Describe the garbage collection process.

Garbage collection is an essential process of the .NET Framework that performs memory usage optimization to allow for greater effectiveness of the platform. Answering this question allows you to show you’re an expert on the subject of .NET. It demonstrates knowledge of the framework that goes beyond just repeating theoretical concepts. Example: “The .NET Framework … Read more

Explain in basic terms how to execute managed code.

Executing code is an essential function of any developer, but knowledge of executing managed code is specific to the .NET Framework. Your answer should explain how to execute code that runs inside the common language runtime environment the framework provides. Additionally, whenever an interviewer asks you to explain something in “basic terms,” it’s important to … Read more

What is the difference between managed and unmanaged code?

When developers work within an established framework, they should be aware of certain nuances, especially those between managed and unmanaged code. This question allows you to display your knowledge of working within the framework and to differentiate that knowledge from working in other coding environments. Answering this question tests the depths of your programming knowledge … Read more