C# Programming - .NET Framework - Discussion
Discussion Forum : .NET Framework - General Questions (Q.No. 19)
19.
Which of the following statements are correct about JIT?
- JIT compiler compiles instructions into machine code at run time.
- The code compiler by the JIT compiler runs under CLR.
- The instructions compiled by JIT compilers are written in native code.
- The instructions compiled by JIT compilers are written in Intermediate Language (IL) code.
- The method is JIT compiled even if it is not called
Discussion:
14 comments Page 2 of 2.
Sanjay sahu said:
1 decade ago
Option 3 is correct. Because JIT is a part of CLR(VES) which converts IL code into machine code gradually during execution of program.
A machine code is also known as native code. So option 4 is wrong.
A machine code is also known as native code. So option 4 is wrong.
Thi said:
1 decade ago
JIT converts MSIL into machine language.
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.
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.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers