C# Programming - .NET Framework - Discussion

Discussion Forum : .NET Framework - General Questions (Q.No. 19)
19.
Which of the following statements are correct about JIT?
  1. JIT compiler compiles instructions into machine code at run time.
  2. The code compiler by the JIT compiler runs under CLR.
  3. The instructions compiled by JIT compilers are written in native code.
  4. The instructions compiled by JIT compilers are written in Intermediate Language (IL) code.
  5. The method is JIT compiled even if it is not called
1, 2, 3
2, 4
3, 4, 5
1, 2
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
14 comments Page 2 of 2.

Huw Pendry said:   1 decade ago
I think this is a language problem, I suspect that the person posing the question was not a native English speaker.

The fact is that IL code is input to the JIT and native code is the output.

Some people read "3. The instructions compiled by JIT" as "the input to JIT" and some read it as "the output of JIT".

The problem is the use of the verb "compiled". The subject of this verb should be the input.

Eg: "C# is compiled by the compiler".

This means that option 3 is correct, but I would suggest that 3 and 4 should be re-written.

Bhavyadeep said:   1 decade ago
One of the correct option is 4th and not the 3rd. JIT compilation converts MSIL to native code on demand at application run time.

Aaron said:   9 years ago
Sorry guys, but 1, 2 and 4 are correct.

3 is incorrect because JIT compiles IL into native code it does not compile native code.
(1)

IPSITA said:   9 years ago
IL code converted into native code trough JIT compiler. Option 3 is wrong.
(1)


Post your comments here:

Your comments will be displayed after verification.