Practice mode C#

What is the role of the JIT compiler in .NET?

Correct answer D. It converts CIL into native machine code when methods are first called at run time

Explanation

JIT stands for just-in-time. When a method is invoked for the first time, the CLR's JIT compiler translates its CIL into native instructions for the current processor and caches the result for later calls. Turning C# into CIL is the job of the C# compiler (Roslyn) at build time, and freeing unused objects is the garbage collector's task.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.