GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Microsoft  >  DotNet

 Print  |  
Question:  What is "Common Language Runtime" (CLR)?

Answer:

CLR is .NET equivalent of Java Virtual Machine (JVM). It is the runtime that converts a MSIL code into the host machine language code, which is then executed appropriately.

 

The CLR is the execution engine for .NET Framework applications. It provides a number of services, including:

 

·          Code management (loading and execution)

·          Application memory isolation

·          Verification of type safety

·          Conversion of IL to native code.

·          Access to metadata (enhanced type information)

·          Managing memory for managed objects

·          Enforcement of code access security

·          Exception handling, including cross-language exceptions

·          Interoperation between managed code, COM objects, and pre-existing DLL's (unmanaged code and data)

·          Automation of object layout

·          Support for developer services (profiling, debugging, and so on).



March 03, 2005 07:31:25 #1
 Sachin Ambekar   Member Since: Visitor    Total Comments: N/A 

RE: What is "Common Language Runtime" (CLR)?
 
CLR brings another benefit to Windows developers--high interoperability between components written in any other language ported to work with the CLR and .NET. The CLR promises common safe types, managed execution, and inheritance across languages. A programmer can now write code that inherits implementations of classes or components written in another language. The programmer's application can also use the exception base class to catch and throw exceptions or errors between code modules written in different languages for more robust error handling.
     

 

Back To Question