Interview Question

What is CLR?

The CLR executes managed .NET code and supplies runtime services.

💡 Concept ✅ Quick Revision 🔷 C#

Answer

The Common Language Runtime is the .NET execution environment for managed code. • It loads assemblies and executes compiled Common Intermediate Language. • It provides services such as garbage collection, exception handling, type safety, and thread management. • A just-in-time compiler normally converts managed methods into native machine code when needed.

💡 C# Example

Console.WriteLine(System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription);

Output

.NET runtime description

⚡ Quick Revision

The CLR executes managed .NET code and supplies runtime services.